Running ‘testthat.R’ [16s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(umx)
  Loading required package: OpenMx
  Registered S3 method overwritten by 'umx':
    method       from  
    vcov.MxModel OpenMx
  For an overview type '?umx'
  
  Attaching package: 'umx'
  
  The following object is masked from 'package:stats':
  
      loadings
  
  > 
  > test_check("umx")
  ── 1. Error: (unknown) (@test_residuals.MxModel.r#16)  ─────────────────────────
  replacement has 2 rows, data has 1
  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: tryCatch({
         m1 = mxRun(m1)
         umxSummary(m1, refModels = refModels, showEstimates = showEstimates)
     }, warning = function(w) {
         message("Warning incurred trying to run model")
         message(w)
     }, error = function(e) {
         message("Error incurred trying to run model")
         message(e)
     })
  3: tryCatchList(expr, classes, parentenv, handlers)
  4: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], 
         parentenv, handlers[[nh]])
  5: value[[3L]](cond)
  6: message(e)
  7: withRestarts({
         signalCondition(cond)
         defaultHandler(cond)
     }, muffleMessage = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ── 2. Error: (unknown) (@test_umx_is_RAM.r#10)  ────────────────────────────────
  replacement has 2 rows, data has 1
  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: tryCatch({
         m1 = mxRun(m1)
         umxSummary(m1, refModels = refModels, showEstimates = showEstimates)
     }, warning = function(w) {
         message("Warning incurred trying to run model")
         message(w)
     }, error = function(e) {
         message("Error incurred trying to run model")
         message(e)
     })
  3: tryCatchList(expr, classes, parentenv, handlers)
  4: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]), names[nh], 
         parentenv, handlers[[nh]])
  5: value[[3L]](cond)
  6: message(e)
  7: withRestarts({
         signalCondition(cond)
         defaultHandler(cond)
     }, muffleMessage = function() NULL)
  8: withOneRestart(expr, restarts[[1L]])
  9: doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 55 SKIPPED: 0 FAILED: 2
  1. Error: (unknown) (@test_residuals.MxModel.r#16) 
  2. Error: (unknown) (@test_umx_is_RAM.r#10) 
  
  Error: testthat unit tests failed
  Execution halted