* using log directory 'd:/Rcompile/CRANpkg/local/2.13/FlexParamCurve.Rcheck' * using R version 2.13.2 (2011-09-30) * using platform: i386-pc-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'FlexParamCurve/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'FlexParamCurve' version '1.3' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking whether package 'FlexParamCurve' can be installed ... OK * checking installed package size ... 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 whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... 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 SSposnegRichards: no visible binding for global variable 'pnmodelparams' posnegRichardsInit : richards3: no visible binding for global variable 'pnmodelparams' posnegRichardsInit : func21: no visible binding for global variable 'pnmodelparams' posnegRichardsInit : richardsR: no visible binding for global variable 'pnmodelparams' posnegRichardsInit: no visible binding for global variable 'pnmodelparams' posnegRichards_eqn: no visible binding for global variable 'pnmodelparams' * 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 Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking contents of 'data' directory ... OK * checking data for non-ASCII characters ... OK * checking data for ASCII and uncompressed saves ... OK * checking examples ... ERROR Running examples in 'FlexParamCurve-Ex.R' failed The error most likely occurred in: > ### Name: SSposnegRichards > ### Title: Self-Starting Positive-Negative Richards Model > ### Aliases: SSposnegRichards > > ### ** Examples > > set.seed(3) #for compatability issues > require(graphics) > # retrieve mean estimates of 8 parameters using getInitial > # and posneg_data object > data(posneg_data) > modpar(posneg_data$age, posneg_data$mass,verbose=TRUE) [1] "Values from SSposnegRichards:" Asym K Infl M RAsym 4.425353e+03 6.622676e-02 2.357681e+01 4.193593e-01 -1.480429e+03 Rk Ri RM 1.002176e-01 1.062603e+02 1.902541e-01 [1] "try 8 parameter curve fit in nls" [1] "Values from SSposnegRichards:" Asym K Infl M RAsym 4.423388e+03 6.662887e-02 2.368873e+01 4.341959e-01 -1.482105e+03 Rk Ri RM 1.002176e-01 1.063420e+02 1.902541e-01 [1] "8 parameter nls fit successful" $Asym [1] 4445.192 $K [1] 0.06416126 $Infl [1] 23.2432 $M [1] 0.3591577 $RAsym [1] -1065.771 $Rk [1] 0.2186637 $Ri [1] 104.1584 $RM [1] 0.9781714 $first_y [1] NA $x_at_first_y [1] NA $last_y [1] NA $x_at_last_y [1] NA $twocomponent_age [1] NA $verbose [1] TRUE $force4par [1] FALSE > getInitial(mass ~ SSposnegRichards(age, Asym, K, Infl, M, + RAsym, Rk, Ri, RM, modno = 1), data = posneg_data) [1] "Values from SSposnegRichards:" Asym K Infl M RAsym 4.459788e+03 6.279162e-02 2.292265e+01 3.176732e-01 -1.229655e+03 Rk Ri RM 1.776160e-01 1.058112e+02 9.353180e-01 $Asym [1] 4459.788 $K [1] 0.06279162 $Infl [1] 22.92265 $M [1] 0.3176732 $RAsym [1] -1229.655 $Rk [1] 0.177616 $Ri [1] 105.8112 $RM [1] 0.935318 > > # retrieve mean estimates and produce plot to illustrate fit for > # curve with RM fixed > pars <- coef(nls(mass ~ SSposnegRichards(age, + Asym = Asym, K = K, Infl = Infl, RAsym = RAsym, Rk = Rk, M = M, + Ri = Ri, modno = 2), data = posneg_data)) [1] "Values from SSposnegRichards:" Asym K Infl M RAsym 4524.5657408 0.0482221 125.0143242 0.6569697 -1063.4016872 Rk Ri 0.2121409 376.9088285 Error in nlsModel(formula, mf, start, wts) : singular gradient matrix at initial parameter estimates Calls: coef -> nls -> nlsModel Execution halted