* using log directory 'd:/Rcompile/CRANpkg/local/2.10/mkin.Rcheck' * using R version 2.10.1 (2009-12-14) * using session charset: ISO8859-1 * checking for file 'mkin/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'mkin' version '0.7-8' * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'mkin' 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 non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking for unstated dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... NOTE mkin_long_to_wide: no visible binding for global variable 'name' mkin_long_to_wide: no visible binding for global variable 'value' mkinfit: no visible binding for global variable 'name' mkinfit : cost: no visible binding for global variable 'name' mkinfit : cost: no visible binding for global variable 'value' mkinplot: no visible binding for global variable 'type' mkinplot: no visible binding for global variable 'variable' mkinplot: no visible binding for global variable 'observed' * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking data for non-ASCII characters ... OK * checking examples ... ERROR Running examples in 'mkin-Ex.R' failed. The error most likely occurred in: > ### * mkinfit > > flush(stderr()); flush(stdout()) > > ### Name: mkinfit > ### Title: Fit a kinetic model to data with one or more state variables. > ### Aliases: mkinfit > ### Keywords: models optimize > > ### ** Examples > > # One parent compound, one metabolite, both single first order. > SFO_SFO <- mkinmod( + parent = list(type = "SFO", to = "m1", sink = TRUE), + m1 = list(type = "SFO")) > # Fit the model to the FOCUS example dataset D using defaults > fit <- mkinfit(SFO_SFO, FOCUS_2006_D) Model cost at call 1 : 18994.29 Model cost at call 3 : 18994.29 Model cost at call 7 : 10641.39 Model cost at call 8 : 10641.39 Model cost at call 12 : 7145.411 Model cost at call 14 : 7145.41 Model cost at call 17 : 411.9753 Model cost at call 18 : 411.9751 Model cost at call 22 : 371.2194 Model cost at call 23 : 371.2194 Model cost at call 27 : 371.2127 Model cost at call 31 : 371.2127 Model cost at call 32 : 371.2127 Model cost at call 37 : 371.2127 Model cost at call 39 : 371.2127 Model cost at call 41 : 371.2127 Model cost at call 45 : 371.2127 Error in as.data.frame.default(x) : cannot coerce class "formula" into a data.frame Calls: mkinfit ... is.data.frame -> inherits -> as.data.frame -> as.data.frame.default Execution halted