* using log directory 'd:/Rcompile/CRANpkg/local/3.0/lavaan.survey.Rcheck' * using R version 3.0.3 (2014-03-06) * using platform: i386-w64-mingw32 (32-bit) * using session charset: ISO8859-1 * checking for file 'lavaan.survey/DESCRIPTION' ... OK * checking extension type ... Package * this is package 'lavaan.survey' version '1.1' * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking whether package 'lavaan.survey' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over 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 loading without being on the library search path ... OK * checking 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 ... OK * 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 'lavaan.survey-Ex.R' failed The error most likely occurred in: > ### Name: cardinale > ### Title: Nutrient experiment on patches of algae in Californian streams. > ### Aliases: cardinale > > ### ** Examples > > data(cardinale) > summary(cardinale) PatchDiversity Biomass O2Production logNutrient Min. : 5.00 Min. :-3.0000 Min. :0.00180 Min. :-6.000 1st Qu.:16.50 1st Qu.:-1.4816 1st Qu.:0.01220 1st Qu.:-5.700 Median :23.00 Median :-1.0479 Median :0.02030 Median :-4.000 Mean :25.72 Mean :-0.9947 Mean :0.02617 Mean :-3.545 3rd Qu.:33.00 3rd Qu.:-0.5915 3rd Qu.:0.03595 3rd Qu.:-2.000 Max. :66.00 Max. : 1.0349 Max. :0.09840 Max. : 0.000 logNutrient2 StreamDiversity Stream Min. : 0.210 Min. : 37.00 Adobe Creek :10 1st Qu.: 2.370 1st Qu.: 54.00 Convict Creek :10 Median : 4.670 Median : 68.00 Cottonwood Creek:10 Mean : 5.329 Mean : 72.99 Mammoth Creek :10 3rd Qu.: 6.060 3rd Qu.: 90.00 Swauger Creek :10 Max. :12.520 Max. :139.00 Parker Creek : 9 (Other) :68 > > model.card <- ' + PatchDiversity ~ logNutrient + logNutrient2 + StreamDiversity + Biomass ~ PatchDiversity + logNutrient + O2Production ~ logNutrient + Biomass + logNutrient ~~ logNutrient2' > > fit.card <- sem(model.card, data = cardinale, fixed.x = FALSE, estimator = "MLM") Warning in lav_data_full(data = data, group = group, group.label = group.label, : lavaan WARNING: some observed variances are (at least) a factor 1000 times larger than others; use varTable(fit) to investigate Error in lav_samplestats_Gamma(X[[g]], meanstructure = meanstructure) : could not find function "anyNA" Calls: sem ... -> lav_samplestats_from_data -> lav_samplestats_Gamma Execution halted