Running examples in 'ctsemOMX-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ctGenerateFromFit
> ### Title: Generates data according to the model estimated in a ctsemFit
> ###   object.
> ### Aliases: ctGenerateFromFit
> 
> ### ** Examples
> 
> 
> data(AnomAuth) 
> AnomAuthmodel <- ctModel(LAMBDA = matrix(c(1, 0, 0, 1), nrow = 2, ncol = 2), 
+   Tpoints = 5, n.latent = 2, n.manifest = 2, MANIFESTVAR=diag(0, 2)) 
Type "omx" is still supported but requires ctsemOMX package installation. "stanct" or "standt" are recommended types.
> AnomAuthfit <- ctFit(AnomAuth, AnomAuthmodel)
wide format data detected
Error in names(retval) <- matnames : 
  'names' attribute [21] must be the same length as the vector [0]
Error in lapply(names(model@matrices), getParametersHelper, model, free,  : 
  trying to get slot "matrices" from an object (class "try-error") that is not an S4 object 
Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]

Beginning initial fit attempt
Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]

 Fit attempt generated errors

Beginning fit attempt 1 of at maximum 5 extra tries
Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]

 Fit attempt generated errors

Beginning fit attempt 2 of at maximum 5 extra tries
Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]

 Fit attempt generated errors

Beginning fit attempt 3 of at maximum 5 extra tries
Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]

 Fit attempt generated errors

Beginning fit attempt 4 of at maximum 5 extra tries
Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]

 Fit attempt generated errors

Beginning fit attempt 5 of at maximum 5 extra tries
Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]

 Fit attempt generated errors

Retry limit reached
Warning in mxTryHard(model, initialTolerance = 1e-14, initialGradientIterations = 1,  :
  Error in names(retval) <- matnames : 
  'names' attribute [20] must be the same length as the vector [0]




 All fit attempts resulted in errors - check starting values or model specification

> 
> dwide <- ctGenerateFromFit(AnomAuthfit,timestep=1,n.subjects=5,wide=TRUE)
Error in h(simpleError(msg, call)) : 
  error in evaluating the argument 'x' in selecting a method for function 'nrow': trying to get slot "matrices" from an object (class "try-error") that is not an S4 object 
Calls: ctGenerateFromFit ... imxGenerateLabels -> generateLabelsHelper -> .handleSimpleError -> h
Execution halted