Running examples in ‘semTools-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
Examples with CPU (user + system) or elapsed time > 5s
           user system elapsed
auxiliary 4.479  0.071   5.780
SSpower   4.327  0.088   5.523