Running ‘testthat.R’ [105s/105s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidySEM)
  > if(requireNamespace("OpenMx", quietly = TRUE)) require("OpenMx")
  Loading required package: OpenMx
  To take full advantage of multiple cores, use:
    mxOption(key='Number of Threads', value=parallel::detectCores()) #now
    Sys.setenv(OMP_NUM_THREADS=parallel::detectCores()) #before library(OpenMx)
  > if(requireNamespace("umx", quietly = TRUE)) require("umx")
  Loading required package: umx
  For an overview type '?umx'
  
  Attaching package: 'umx'
  
  The following object is masked from 'package:stats':
  
      loadings
  
  > data_mix_ordinal <- read.csv("testthat/data_mix_ordinal.csv", stringsAsFactors = FALSE)
  > options("test_mplus" = FALSE)
  > test_check("tidySEM")
  
  Beginning initial fit attempt
  Fit attempt 0, fit=254.590792289837, new current best! (was 254.590792289838)
  Beginning fit attempt 1 of at maximum 10 extra tries                         
  Fit attempt 1, fit=257.666246825725, worse than previous best (254.590792289837)
  Beginning fit attempt 2 of at maximum 10 extra tries                            
  Fit attempt 2, fit=7035634.83878603, worse than previous best (254.590792289837)
  Beginning fit attempt 3 of at maximum 10 extra tries                            
  Fit attempt 3, fit=3813510.45872071, worse than previous best (254.590792289837)
  Beginning fit attempt 4 of at maximum 10 extra tries                            
  Fit attempt 4, fit=3813510.45872021, worse than previous best (254.590792289837)
  Beginning fit attempt 5 of at maximum 10 extra tries                            
  Fit attempt 5, fit=3222380.68053771, worse than previous best (254.590792289837)
  Beginning fit attempt 6 of at maximum 10 extra tries                            
  Fit attempt 6, fit=3222381.04137668, worse than previous best (254.590792289837)
  Beginning fit attempt 7 of at maximum 10 extra tries                            
  Fit attempt 7, fit=257.751283337453, worse than previous best (254.590792289837)
  Beginning fit attempt 8 of at maximum 10 extra tries                            
  Fit attempt 8, fit=7035634.83878603, worse than previous best (254.590792289837)
  Beginning fit attempt 9 of at maximum 10 extra tries                            
  Fit attempt 9, fit=7035634.83878603, worse than previous best (254.590792289837)
  Beginning fit attempt 10 of at maximum 10 extra tries                           
  Fit attempt 10, fit=257.187265660275, worse than previous best (254.590792289837)
  Final run, for Hessian and/or standard errors and/or confidence intervals        
                                                                           
  
  Beginning initial fit attempt
  Fit attempt 0, fit=3985.3130700803, new current best! (was 3985.3130700803)
  Beginning fit attempt 1 of at maximum 10 extra tries                       
  Fit attempt 1, fit=7613074.85267255, worse than previous best (3985.3130700803)
  Beginning fit attempt 2 of at maximum 10 extra tries                           
  Fit attempt 2, fit=571.901981657028, new current best! (was 3985.3130700803)
  Beginning fit attempt 3 of at maximum 10 extra tries                        
  Fit attempt 3, fit=571.901981657028, new current best! (was 571.901981657028)
  Beginning fit attempt 4 of at maximum 10 extra tries                         
  Fit attempt 4, fit=571.901981657027, new current best! (was 571.901981657028)
  Beginning fit attempt 5 of at maximum 10 extra tries                         
  Beginning fit attempt 6 of at maximum 10 extra tries
  Beginning fit attempt 7 of at maximum 10 extra tries
  Beginning fit attempt 8 of at maximum 10 extra tries
  Beginning fit attempt 9 of at maximum 10 extra tries
  Beginning fit attempt 10 of at maximum 10 extra tries
  Final run, for Hessian and/or standard errors and/or confidence intervals
                                                                           
  
  Beginning initial fit attempt
  Fit attempt 0, fit=3985.3130700803, new current best! (was 3985.3130700803)
  Beginning fit attempt 1 of at maximum 10 extra tries                       
  Fit attempt 1, fit=7613074.85267255, worse than previous best (3985.3130700803)
  Beginning fit attempt 2 of at maximum 10 extra tries                           
  Fit attempt 2, fit=7613074.85267255, worse than previous best (3985.3130700803)
  Beginning fit attempt 3 of at maximum 10 extra tries                           
  Fit attempt 3, fit=571.90198165703, new current best! (was 3985.3130700803)
  Beginning fit attempt 4 of at maximum 10 extra tries                       
  Fit attempt 4, fit=571.901981657028, new current best! (was 571.90198165703)
  Beginning fit attempt 5 of at maximum 10 extra tries                        
  Fit attempt 5, fit=571.901981657027, new current best! (was 571.901981657028)
  Beginning fit attempt 6 of at maximum 10 extra tries                         
  Beginning fit attempt 7 of at maximum 10 extra tries
  Beginning fit attempt 8 of at maximum 10 extra tries
  Beginning fit attempt 9 of at maximum 10 extra tries
  Beginning fit attempt 10 of at maximum 10 extra tries
  Final run, for Hessian and/or standard errors and/or confidence intervals
                                                                           
  
  Beginning initial fit attempt
  Fit attempt 0, fit=424.192027151267, new current best! (was 424.192027151277)
  Beginning fit attempt 1 of at maximum 10 extra tries                         
  Fit attempt 1, fit=422.891786649199, new current best! (was 424.192027151267)
  Beginning fit attempt 2 of at maximum 10 extra tries                         
  Fit attempt 2, fit=360808.904170382, worse than previous best (422.891786649199)
  Beginning fit attempt 3 of at maximum 10 extra tries                            
  Fit attempt 3, fit=360808.904170382, worse than previous best (422.891786649199)
  Beginning fit attempt 4 of at maximum 10 extra tries                            
  Fit attempt 4, fit=428.723338754994, worse than previous best (422.891786649199)
  Beginning fit attempt 5 of at maximum 10 extra tries                            
  Fit attempt 5, fit=424.796604555295, worse than previous best (422.891786649199)
  Beginning fit attempt 6 of at maximum 10 extra tries                            
  Fit attempt 6, fit=360808.904170382, worse than previous best (422.891786649199)
  Beginning fit attempt 7 of at maximum 10 extra tries                            
  Fit attempt 7, fit=360808.904170382, worse than previous best (422.891786649199)
  Beginning fit attempt 8 of at maximum 10 extra tries                            
  Fit attempt 8, fit=421.591546147156, new current best! (was 422.891786649199)
  Beginning fit attempt 9 of at maximum 10 extra tries                         
  Fit attempt 9, fit=421.59154614713, new current best! (was 421.591546147156)
  Beginning fit attempt 10 of at maximum 10 extra tries                       
  Fit attempt 10, fit=360808.904170382, worse than previous best (421.59154614713)
  Final run, for Hessian and/or standard errors and/or confidence intervals       
                                                                           
  
  Beginning initial fit attempt
  Fit attempt 0, fit=1492.04120431826, new current best! (was 1492.04120431826)
  Beginning fit attempt 1 of at maximum 10 extra tries                         
  Fit attempt 1, fit=1078383.96916062, worse than previous best (1492.04120431826)
  Beginning fit attempt 2 of at maximum 10 extra tries                            
  Fit attempt 2, fit=1078383.96916062, worse than previous best (1492.04120431826)
  Beginning fit attempt 3 of at maximum 10 extra tries                            
  Fit attempt 3, fit=1336.92668446712, new current best! (was 1492.04120431826)
  Beginning fit attempt 4 of at maximum 10 extra tries                         
  Fit attempt 4, fit=487.462079245382, new current best! (was 1336.92668446712)
  Beginning fit attempt 5 of at maximum 10 extra tries                         
  Fit attempt 5, fit=487.462079245382, new current best! (was 487.462079245382)
  Beginning fit attempt 6 of at maximum 10 extra tries                         
  Beginning fit attempt 7 of at maximum 10 extra tries
  Beginning fit attempt 8 of at maximum 10 extra tries
  Fit attempt 8, fit=487.462079245381, new current best! (was 487.462079245382)
  Beginning fit attempt 9 of at maximum 10 extra tries                         
  Beginning fit attempt 10 of at maximum 10 extra tries
  Final run, for Hessian and/or standard errors and/or confidence intervals
                                                                           
  
  Beginning initial fit attempt
  Fit attempt 0, fit=603.405301707899, new current best! (was 603.405301707904)
  Beginning fit attempt 1 of at maximum 10 extra tries                         
  Fit attempt 1, fit=718792.771925815, worse than previous best (603.405301707899)
  Beginning fit attempt 2 of at maximum 10 extra tries                            
  Beginning fit attempt 3 of at maximum 10 extra tries
  Fit attempt 3, fit=472.500476353258, new current best! (was 603.405301707899)
  Beginning fit attempt 4 of at maximum 10 extra tries                         
  Beginning fit attempt 5 of at maximum 10 extra tries
  Beginning fit attempt 6 of at maximum 10 extra tries
  Beginning fit attempt 7 of at maximum 10 extra tries
  Fit attempt 7, fit=472.500476353258, new current best! (was 472.500476353258)
  Beginning fit attempt 8 of at maximum 10 extra tries                         
  Fit attempt 8, fit=472.500476353258, new current best! (was 472.500476353258)
  Beginning fit attempt 9 of at maximum 10 extra tries                         
  Beginning fit attempt 10 of at maximum 10 extra tries
  Final run, for Hessian and/or standard errors and/or confidence intervals
                                                                           
  
  Beginning initial fit attempt
  Fit attempt 0, fit=1311.34284825687, new current best! (was 1311.34284826144)
  Beginning fit attempt 1 of at maximum 10 extra tries                         
  Fit attempt 1, fit=720411.671966184, worse than previous best (1311.34284825687)
  Beginning fit attempt 2 of at maximum 10 extra tries                            
  Fit attempt 2, fit=485.643885310303, new current best! (was 1311.34284825687)
  Beginning fit attempt 3 of at maximum 10 extra tries                         
  Fit attempt 3, fit=485.643885310302, new current best! (was 485.643885310303)
  Beginning fit attempt 4 of at maximum 10 extra tries                         
  Fit attempt 4, fit=485.643885310302, new current best! (was 485.643885310302)
  Beginning fit attempt 5 of at maximum 10 extra tries                         
  Beginning fit attempt 6 of at maximum 10 extra tries
  Fit attempt 6, fit=485.643885310302, new current best! (was 485.643885310302)
  Beginning fit attempt 7 of at maximum 10 extra tries                         
  Beginning fit attempt 8 of at maximum 10 extra tries
  Fit attempt 8, fit=485.643885310302, new current best! (was 485.643885310302)
  Beginning fit attempt 9 of at maximum 10 extra tries                         
  Beginning fit attempt 10 of at maximum 10 extra tries
  Final run, for Hessian and/or standard errors and/or confidence intervals
                                                                           
  
  Beginning initial fit attempt
  Fit attempt 0, fit=421.618328482143, new current best! (was 421.618328482143)
  Beginning fit attempt 1 of at maximum 10 extra tries                         
  Fit attempt 1, fit=360808.930952717, worse than previous best (421.618328482143)
  Beginning fit attempt 2 of at maximum 10 extra tries                            
  Fit attempt 2, fit=424.559289823321, worse than previous best (421.618328482143)
  Beginning fit attempt 3 of at maximum 10 extra tries                            
  Fit attempt 3, fit=427.032635750421, worse than previous best (421.618328482143)
  Beginning fit attempt 4 of at maximum 10 extra tries                            
  Fit attempt 4, fit=427.834551174654, worse than previous best (421.618328482143)
  Beginning fit attempt 5 of at maximum 10 extra tries                            
  Fit attempt 5, fit=360808.930952717, worse than previous best (421.618328482143)
  Beginning fit attempt 6 of at maximum 10 extra tries                            
  Fit attempt 6, fit=360808.930952717, worse than previous best (421.618328482143)
  Beginning fit attempt 7 of at maximum 10 extra tries                            
  Fit attempt 7, fit=360808.930952717, worse than previous best (421.618328482143)
  Beginning fit attempt 8 of at maximum 10 extra tries                            
  Beginning fit attempt 9 of at maximum 10 extra tries
  Fit attempt 9, fit=360808.930952717, worse than previous best (421.618328482143)
  Beginning fit attempt 10 of at maximum 10 extra tries                           
  Fit attempt 10, fit=360808.930952717, worse than previous best (421.618328482143)
  Final run, for Hessian and/or standard errors and/or confidence intervals        
                                                                           
  
  
  
  
  
  
  
  
  
  
  Saving _problems/test-pseudo_class_technique-16.R
  [ FAIL 1 | WARN 10 | SKIP 10 | PASS 153 ]
  
  ══ Skipped tests (10) ══════════════════════════════════════════════════════════
  • Not run by package maintainer (5): 'test-multigroup_mx.R:3:5',
    'test-openmx_ordinal.R:3:5', 'test-openmx_ordinal_methods.R:4:5',
    'test-plot_multigroup_multilevel.R:2:3', 'test-plot_plot_prob.R:3:3'
  • On CRAN (1): 'test-plot_profiles_varyingcov.R:2:3'
  • empty test (4): , , ,
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-pseudo_class_technique.R:13:3'): pseudo_class works ────────────
  <functionNotFoundError/objectNotFoundError/error/condition>
  Error in `lav_object_inspect_coef(object = object, type = type, add.labels = labels, add.class = TRUE)`: could not find function "lav_object_inspect_coef"
  Backtrace:
      ▆
   1. ├─tidySEM::pseudo_class(...)
   2. └─tidySEM:::pseudo_class.class_draws(...)
   3.   ├─tidySEM:::pseudo_class_pool(fits, ...)
   4.   └─tidySEM:::pseudo_class_pool.lavaan(fits, ...)
   5.     ├─lavaan::coef(example_fit)
   6.     └─lavaan::coef(example_fit)
   7.       └─lavaan (local) .local(object, ...)
  
  [ FAIL 1 | WARN 10 | SKIP 10 | PASS 153 ]
  Error:
  ! Test failures.
  Execution halted