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

> ### Name: mnlfa
> ### Title: Moderated Nonlinear Factor Analysis
> ### Aliases: mnlfa summary.mnlfa
> 
> ### ** Examples
> 
> #############################################################################
> # EXAMPLE 1: Dichotomous data, 1PL model
> #############################################################################
> 
> data(data.mnlfa01, package="mnlfa")
> 
> dat <- data.mnlfa01
> # extract items from dataset
> items <- grep("I[0-9]", colnames(dat), value=TRUE)
> I <- length(items)
> 
> # maximum number of iterations (use only few iterations for the only purpose of
> # providing CRAN checks)
> maxit <- 10
> 
> #***** Model 1: 1PL model without moderating parameters and without covariates for traits
> 
> # no covariates for trait
> formula_mean <- ~0
> formula_sd <- ~1
> # no item covariates
> formula_int <- ~1
> formula_slo <- ~1
> 
> mod1 <- mnlfa::mnlfa( dat=dat, items, item_type="1PL", formula_int=formula_int,
+              formula_slo=formula_slo, formula_mean=formula_mean, formula_sd=formula_sd,
+              maxit=maxit )
----------------------------------------------
Iteration 1 
Deviance = 16048.44
M-step item parameters 
Maximum change in item parameters = 1.559066 
Maximum change in trait distribution parameters = 0.077569 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 8024.22 
AIC = 16074.44  | BIC = 16138.24 
----------------------------------------------
Iteration 2 
Deviance = 14211.3
M-step item parameters 
Maximum change in item parameters = 0.028214 
Maximum change in trait distribution parameters = 0.029121 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7105.651 
AIC = 14237.3  | BIC = 14301.1 
----------------------------------------------
Iteration 3 
Deviance = 14207.42
M-step item parameters 
Maximum change in item parameters = 0.017513 
Maximum change in trait distribution parameters = 0.019818 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7103.71 
AIC = 14233.42  | BIC = 14297.22 
----------------------------------------------
Iteration 4 
Deviance = 14205.71
M-step item parameters 
Maximum change in item parameters = 0.011702 
Maximum change in trait distribution parameters = 0.013183 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7102.853 
AIC = 14231.71  | BIC = 14295.51 
----------------------------------------------
Iteration 5 
Deviance = 14204.95
M-step item parameters 
Maximum change in item parameters = 0.007839 
Maximum change in trait distribution parameters = 0.008694 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7102.477 
AIC = 14230.95  | BIC = 14294.76 
----------------------------------------------
Iteration 6 
Deviance = 14204.63
M-step item parameters 
Maximum change in item parameters = 0.005258 
Maximum change in trait distribution parameters = 0.0057 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7102.313 
AIC = 14230.63  | BIC = 14294.43 
----------------------------------------------
Iteration 7 
Deviance = 14204.48
M-step item parameters 
Maximum change in item parameters = 0.003531 
Maximum change in trait distribution parameters = 0.003735 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7102.242 
AIC = 14230.48  | BIC = 14294.29 
----------------------------------------------
Iteration 8 
Deviance = 14204.42
M-step item parameters 
Maximum change in item parameters = 0.002377 
Maximum change in trait distribution parameters = 0.002433 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7102.211 
AIC = 14230.42  | BIC = 14294.22 
----------------------------------------------
Iteration 9 
Deviance = 14204.4
M-step item parameters 
Maximum change in item parameters = 0.0016 
Maximum change in trait distribution parameters = 0.00158 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7102.198 
AIC = 14230.4  | BIC = 14294.2 
----------------------------------------------
Iteration 10 
Deviance = 14204.38
M-step item parameters 
Maximum change in item parameters = 0.001078 
Maximum change in trait distribution parameters = 0.001026 
Number of estimated parameters = 13 
Number of regularized parameters = 0 
Optimization function value = 7102.192 
AIC = 14230.38  | BIC = 14294.18 
> summary(mod1)
-----------------------------------------------------------------------------

Call:
mnlfa::mnlfa(dat = dat, items = items, item_type = "1PL", formula_int = formula_int, 
    formula_slo = formula_slo, formula_mean = formula_mean, formula_sd = formula_sd, 
    maxit = maxit)

Date of Analysis: 2021-12-02 21:15:01 
Time difference of 1.478242 secs
Computation Time: 1.478242 

Moderated nonlinear factor analysis

-----------------------------------------------------------------------------
Number of iterations = 10
Maximum number of iterations was reached.

Deviance = 14204.38 | Log Likelihood = -7102.19
Penalty = 0
Number of persons = 1000
Number of estimated parameters = 13
Number of regularized parameters = 0

AIC = 14230  | penalty = 26    | AIC = -2*LL + 2*p  
AICc = 14231  | penalty = 26.37    | AICc = -2*LL + 2*p + 2*p*(p+1)/(n-p-1)  (bias corrected AIC)  
BIC = 14294  | penalty = 89.8    | BIC = -2*LL + log(n)*p   
CAIC = 14307  | penalty = 102.8    | CAIC = -2*LL + [log(n)+1]*p  (consistent AIC)   

-----------------------------------------------------------------------------
Item Parameters 
Error in Math.data.frame(list(itemid = c(1L, 1L, 2L, 2L, 3L, 3L, 4L, 4L,  : 
  non-numeric-alike variable(s) in data frame: item, item_type, parm, reg_type
Calls: summary -> summary.mnlfa -> <Anonymous> -> Math.data.frame
Execution halted