Running ‘testthat.R’ [15s/50s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tidySEM)
  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)
  > library(MplusAutomation)
  Version:  1.0.0
  We work hard to write this free software. Please help us get credit by citing: 
  
  Hallquist, M. N. & Wiley, J. F. (2018). MplusAutomation: An R Package for Facilitating Large-Scale Latent Variable Analyses in Mplus. Structural Equation Modeling, 25, 621-638. doi: 10.1080/10705511.2017.1402334.
  
  -- see citation("MplusAutomation").
  > library(tidyLPA)
  You can use the function citation('tidyLPA') to create a citation for the use of {tidyLPA}.
  Mplus is not installed. Use only package = 'mclust' when calling estimate_profiles().
  
  Attaching package: 'tidyLPA'
  
  The following objects are masked from 'package:tidySEM':
  
      get_data, get_fit, plot_bivariate, plot_density, plot_profiles,
      poms
  
  Warning message:
  In system2("type", args = "mplus", stdout = FALSE, stderr = FALSE) :
    error in running command
  > test_check("tidySEM")
  
   *** caught segfault ***
  address 0, cause 'memory not mapped'
  
  Traceback:
   1: runHelper(model, frontendStart, intervals, silent, suppressWarnings,     unsafe, checkpoint, useSocket, onlyFrontend, useOptimizer,     beginMessage)
   2: mxRun(omxBuildAutoStartModel(model, type), silent = TRUE)
   3: mxAutoStart(x)
   4: run_mx.MxModel(tmp, data = HolzingerSwineford1939, groups = "school")
   5: run_mx(tmp, data = HolzingerSwineford1939, groups = "school")
   6: eval(code, test_env)
   7: eval(code, test_env)
   8: withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error)
   9: doTryCatch(return(expr), name, parentenv, handler)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  12: doTryCatch(return(expr), name, parentenv, handler)
  13: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  14: tryCatchList(expr, classes, parentenv, handlers)
  15: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!handled && !is.null(test)) {        skip_empty()    }}, expectation = handle_expectation, skip = handle_skip, warning = handle_warning,     message = handle_message, error = handle_error), error = handle_fatal,     skip = function(e) {    })
  16: test_code(NULL, exprs, env)
  17: source_file(path, child_env(env), wrap = wrap)
  18: FUN(X[[i]], ...)
  19: lapply(test_paths, test_one_file, env = env, wrap = wrap)
  20: doTryCatch(return(expr), name, parentenv, handler)
  21: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  22: tryCatchList(expr, classes, parentenv, handlers)
  23: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  24: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, wrap = wrap))
  25: test_files(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package)
  26: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap, load_package = load_package, parallel = parallel)
  27: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  28: test_check("tidySEM")
  An irrecoverable exception occurred. R is aborting now ...