* using log directory 'd:/Rcompile/CRANpkg/local/2.4/FortranCallsR.Rcheck' * using R version 2.4.1 beta (2006-12-07 r40137) * checking for file 'FortranCallsR/DESCRIPTION' ... OK * this is package 'FortranCallsR' version '0.1' * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'FortranCallsR' can be installed ... OK * checking package directory ... OK * checking for portable file names ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for syntax errors ... OK * checking R files for non-ASCII characters ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... OK * checking Rd files ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking for CRLF line endings in C/C++/Fortran sources/headers ... OK * checking for portable compilation flags in Makevars ... OK * checking for portable use of $BLAS_LIBS ... OK * creating FortranCallsR-Ex.R ... OK * checking examples ... ERROR Running examples in 'FortranCallsR-Ex.R' failed. The error most likely occurred in: > ### * fopt > > flush(stderr()); flush(stdout()) > > ### Name: toyOptim > ### Title: Toy Model Optimizer > ### Aliases: toyOptim > ### Keywords: programming > > ### ** Examples > > ## toyOptim - > > # Simple Test Function 1: > toyFun1 = function(x) { + fun = x^2 + # .trace is a global variable + if (.trace) print(c(x = x, fun = fun)) + fun + } > toyOptim(start = 0, objective = toyFun1, lower = -1, upper = 1) Iteration Path: Error in toyOptim(start = 0, objective = toyFun1, lower = -1, upper = 1) : INTEGER() can only be applied to a 'integer', not a 'double' Execution halted