Running ‘testthat.R’ [12s/12s]
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  251958420 is too close to the limit
  ── 1. Error: (unknown) (@test_residuals.MxModel.r#16)  ─────────────────────────
  The job for model 'test' exited abnormally with the error message: User interrupt
  1: umxRAM("test", data = mxData(cov(demoOneFactor), type = "cov", numObs = 500), umxPath(latents, 
         to = manifests), umxPath(var = manifests), umxPath(var = latents, fixedAt = 1)) at testthat/test_residuals.MxModel.r:16
  2: xmu_safe_run_summary(newModel, autoRun = autoRun, tryHard = tryHard)
  3: tryCatch({
         if (tryHard == "no") {
             model1 = mxRun(model1)
         }
         else if (tryHard == "mxTryHard") {
             model1 = mxTryHard(model1)
         }
         else if (tryHard == "mxTryHardOrdinal") {
             model1 = mxTryHardOrdinal(model1)
         }
         else if (tryHard == "mxTryHardWideSearch") {
             model1 = mxTryHardWideSearch(model1)
         }
     }, error = function(e) {
         if (tryHard == "no") {
             message("Error incurred trying to run model: model = mxTryHard(model) might help?")
         }
         else {
             message("Error incurred trying to run model")
         }
         message(e)
     })
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  6: value[[3L]](cond)
  7: message(e)
  8: withRestarts({
         signalCondition(cond)
         defaultHandler(cond)
     }, muffleMessage = function() NULL)
  9: withOneRestart(expr, restarts[[1L]])
  10: doWithOneRestart(return(expr), restart)
  
  Error: C stack usage  251958420 is too close to the limit
  ── 2. Error: (unknown) (@test_umx_has_CI.r#41)  ────────────────────────────────
  The job for model 'm1' exited abnormally with the error message: User interrupt
  1: mxRun(m1) at testthat/test_umx_has_CI.r:41
  2: runHelper(model, frontendStart, intervals, silent, suppressWarnings, unsafe, checkpoint, 
         useSocket, onlyFrontend, useOptimizer, beginMessage)
  3: processErrorConditions(model, unsafe, suppressWarnings)
  4: stop(paste("The job for model", omxQuotes(model@name), "exited abnormally with the error message:", 
         output$error), call. = FALSE)
  
  Error: C stack usage  251958420 is too close to the limit
  ── 3. Error: (unknown) (@test_umx_is_RAM.r#10)  ────────────────────────────────
  The job for model 'One Factor' exited abnormally with the error message: User interrupt
  1: umxRAM("One Factor", data = mxData(cov(demoOneFactor), type = "cov", numObs = 500), 
         umxPath(latents, to = manifests), umxPath(var = manifests), umxPath(var = latents, 
             fixedAt = 1)) at testthat/test_umx_is_RAM.r:10
  2: xmu_safe_run_summary(newModel, autoRun = autoRun, tryHard = tryHard)
  3: tryCatch({
         if (tryHard == "no") {
             model1 = mxRun(model1)
         }
         else if (tryHard == "mxTryHard") {
             model1 = mxTryHard(model1)
         }
         else if (tryHard == "mxTryHardOrdinal") {
             model1 = mxTryHardOrdinal(model1)
         }
         else if (tryHard == "mxTryHardWideSearch") {
             model1 = mxTryHardWideSearch(model1)
         }
     }, error = function(e) {
         if (tryHard == "no") {
             message("Error incurred trying to run model: model = mxTryHard(model) might help?")
         }
         else {
             message("Error incurred trying to run model")
         }
         message(e)
     })
  4: tryCatchList(expr, classes, parentenv, handlers)
  5: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  6: value[[3L]](cond)
  7: message(e)
  8: withRestarts({
         signalCondition(cond)
         defaultHandler(cond)
     }, muffleMessage = function() NULL)
  9: withOneRestart(expr, restarts[[1L]])
  10: doWithOneRestart(return(expr), restart)
  
  [1] "cyl"
  [1] "cylinder"
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 58 SKIPPED: 0 WARNINGS: 4 FAILED: 3
  1. Error: (unknown) (@test_residuals.MxModel.r#16) 
  2. Error: (unknown) (@test_umx_has_CI.r#41) 
  3. Error: (unknown) (@test_umx_is_RAM.r#10) 
  
  Error: testthat unit tests failed
  Execution halted