* using log directory 'd:/Rcompile/CRANpkg/local/4.6/semTools.Rcheck' * using R Under development (unstable) (2025-12-06 r89118 ucrt) * using platform: x86_64-w64-mingw32 * R was compiled by gcc.exe (GCC) 14.3.0 GNU Fortran (GCC) 14.3.0 * running under: Windows Server 2022 x64 (build 20348) * using session charset: UTF-8 * checking for file 'semTools/DESCRIPTION' ... OK * this is package 'semTools' version '0.5-7' * package encoding: UTF-8 * 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 'semTools' can be installed ... OK * checking installed package size ... OK * checking package directory ... OK * checking 'build' 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 code files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... [2s] OK * checking whether the package can be loaded with stated dependencies ... [2s] OK * checking whether the package can be unloaded cleanly ... [2s] OK * checking whether the namespace can be loaded with stated dependencies ... [2s] OK * checking whether the namespace can be unloaded cleanly ... [2s] OK * checking loading without being on the library search path ... [1s] OK * checking whether startup messages can be suppressed ... [2s] OK * checking use of S3 registration ... 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 ... [52s] OK * checking Rd files ... [4s] 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 ... [0s] OK * checking LazyData ... OK * checking data for ASCII and uncompressed saves ... OK * checking sizes of PDF files under 'inst/doc' ... OK * checking installed files from 'inst/doc' ... OK * checking files in 'vignettes' ... OK * checking examples ... [13s] ERROR Running examples in 'semTools-Ex.R' failed The error most likely occurred in: > ### Name: chisqSmallN > ### Title: Small-_N_ correction for chi^2 test statistic > ### Aliases: chisqSmallN > > ### ** Examples > > > HS.model <- ' + visual =~ x1 + b1*x2 + x3 + textual =~ x4 + b2*x5 + x6 + speed =~ x7 + b3*x8 + x9 + ' > fit1 <- cfa(HS.model, data = HolzingerSwineford1939[1:50,]) Warning: lavaan->lav_object_post_check(): some estimated ov variances are negative > ## test a single model (implicitly compared to a saturated model) > chisqSmallN(fit1) Warning: lavaan->class(fit0)(): Unknown argument 'omit.imps' for 'fitMeasures' Warning: lavaan->class(fit0)(): Unknown argument 'asymptotic' for 'fitMeasures' $standard chisq df pvalue 55.138 24.000 0.000 $swain chisq df pvalue smallN.factor 50.704 24.000 0.001 0.920 $yuan.2015 chisq df pvalue smallN.factor 48.791 24.000 0.002 0.885 > > ## fit a more constrained model > fit0 <- cfa(HS.model, data = HolzingerSwineford1939[1:50,], + orthogonal = TRUE) Warning: lavaan->lav_object_post_check(): some estimated ov variances are negative > ## compare 2 models > chisqSmallN(fit1, fit0) Warning: lavaan->class(fit0)(): Unknown argument 'omit.imps' for 'fitMeasures' Warning: lavaan->class(fit1)(): Unknown argument 'omit.imps' for 'fitMeasures' Warning in chisqSmallN(fit1, fit0) : Small-N corrections developed for single models, not for model comparison. Experimentally applying correction to chi-squared difference statistic, which might be invalid. Warning: lavaan->FUN(): Unknown argument 'pool.robust' for 'fitMeasures' Warning: lavaan->FUN(): Unknown argument 'pool.method' for 'fitMeasures' Warning: lavaan->FUN(): Unknown argument 'pool.robust' for 'fitMeasures' Warning: lavaan->FUN(): Unknown argument 'pool.method' for 'fitMeasures' Error in chisqSmallN(fit1, fit0) : Model comparison failed. Try using lavTestLRT() to investigate why. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... [21s] OK * checking PDF version of manual ... [35s] OK * checking HTML version of manual ... [35s] OK * DONE Status: 1 ERROR