Running ‘testthat.R’ [31s/61s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(umx)
  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)
  For an overview type '?umx'
  
  Attaching package: 'umx'
  
  The following object is masked from 'package:stats':
  
      loadings
  
  > 
  > test_check("umx")
  Error: C stack usage  276206740 is too close to the limit
  ── 1. Error: (unknown) (@test_residuals.MxModel.r#15)  ─────────────────────────
  The job for model 'test' exited abnormally with the error message: User interrupt
  Backtrace:
   1. umx::umxRAM(...)
   2. umx::xmu_safe_run_summary(...)
   3. base::tryCatch(...)
   4. base:::tryCatchList(expr, classes, parentenv, handlers)
   5. base:::tryCatchOne(expr, names, parentenv, handlers[[1L]])
   6. value[[3L]](cond)
  
  
   *** caught segfault ***
  address 1b6373d8, cause 'memory not mapped'
  
   *** caught segfault ***
  address 1, cause 'memory not mapped'
  Error in structure(list(message = as.character(message), call = call),  : 
    '...' used in an incorrect context
  Calls: test_check ... tryCatchList -> tryCatchOne -> simpleError -> structure
  Warning: stack imbalance in 'is.list', 27 then 26
  Warning: stack imbalance in '||', 25 then 23
  Warning: stack imbalance in 'if', 23 then 22
  Error in dir(path, pattern, full.names = TRUE) : 
    badly formed function expression
  Calls: test_check ... source_dir -> normalizePath -> path.expand -> sort -> dir
  Error: no more error handlers available (recursive errors?); invoking 'abort' restart
  Error: no more error handlers available (recursive errors?); invoking 'abort' restart
  Execution halted
  Error in `$<-`(`*tmp*`, in_test, value = FALSE, tryCatchOne = function (expr,  : 
    8 arguments passed to '$<-' which requires 3
  Fatal error: error during cleanup