Running ‘testthat.R’ [184s/178s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # NOTE: This will not test an uninstalled package.
  > library(testthat)
  > test_check('ifaTools')
  Loading required package: ifaTools
  Loading required package: shiny
  Loading required package: ggplot2
  Loading required package: reshape2
  Loading required package: rpf
  Loading required package: parallel
  Loading required package: OpenMx
  To take full advantage of multiple cores, use:
    mxOption(NULL, 'Number of Threads', parallel::detectCores()) #now
    Sys.setenv(OMP_NUM_THREADS=parallel::detectCores()) #before library(OpenMx)
  Welcome to ifaTools!
   Use itemModelExplorer() to explore item models.
   Use modelBuilder() to build an IFA model.
  [1] "/home/ripley/R/packages/tests32/ifaTools.Rcheck/tests/testthat"
  ── 1. Failure: addExploratoryFactors (@test-addExploratoryFactor.R#80)  ────────
  m1$output$fit - m2$output$fit not equal to 115.39.
  1/1 mismatches
  [1] 130 - 115 == 14.9
  
  
   *** caught illegal operation ***
  address fe3e2b33, cause 'illegal opcode'
  
   *** caught segfault ***
  address 78a3ffff, cause 'memory not mapped'
  
  Traceback:
   1: doTryCatch(return(expr), name, parentenv, handler)
   2: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   3: tryCatchList(expr, classes, parentenv, handlers)
   4: tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir),     error = function(e) {        e$call <- cl.i        stop(e)    })
   5: withCallingHandlers(tryCatch(if (missE) ...elt(i) else eval(cl.i,     envir = envir), error = function(e) {    e$call <- cl.i    stop(e)}), warning = function(w) {    w$call <- cl.i    w})
   6: stopifnot(is.expectation(exp))
   7: expectation_type(exp)
   8: expectation_type(exp) %in% c("success", "warning")
   9: expectation_ok(e)
  10: register_expectation(e)
  11: value[[3L]](cond)
  12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  13: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  16: tryCatchList(expr, classes, parentenv, handlers)
  17: 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) {    })
  18: test_code(desc, code, env = parent.frame())
  19: test_that("uniquenessPrior", {    imat <- mxMatrix(name = "item", nrow = 3, ncol = 3, values = 1:9,         free = TRUE, labels = paste("l", 1:9, sep = ""))    imat$labels[1, 2] <- "l1"    imat$free[2, 2] <- FALSE    imat$free[3, ] <- FALSE    spec <- list()    spec[1:3] <- rpf.grm(factors = 2)    m1 <- mxModel("test", imat, mxExpectationBA81(spec))    m1 <- mxModel(m1, uniquenessPrior(m1, 2), mxFitFunctionMultigroup(c("uniquenessPrior")))    m1$expectation <- NULL    checkAnalyticDeriv(omxAssignFirstParameters(m1))})
  20: eval(code, test_env)
  21: eval(code, test_env)
  22: 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)
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  28: tryCatchList(expr, classes, parentenv, handlers)
  29: 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) {    })
  30: test_code(NULL, exprs, env)
  31: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  32: force(code)
  33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  34: FUN(X[[i]], ...)
  35: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  36: force(code)
  37: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  38: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  39: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 
  Traceback:
   1: doTryCatch(return(expr), name, parentenv, handler)
   2: tryCatchOne(expr, names, parentenv, handlers[[1L]])
   3: tryCatchList(expr, classes, parentenv, handlers)
   4: tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir),     error = function(e) {        e$call <- cl.i        stop(e)    })
   5: withCallingHandlers(tryCatch(if (missE) ...elt(i) else eval(cl.i,     envir = envir), error = function(e) {    e$call <- cl.i    stop(e)}), warning = function(w) {    w$call <- cl.i    w})
   6: stopifnot(is.expectation(exp))
   7: expectation_type(exp)
   8: expectation_type(exp) %in% c("success", "warning")
   9: expectation_ok(e)
  10: register_expectation(e)
  11: value[[3L]](cond)
  12: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  13: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  14: doTryCatch(return(expr), name, parentenv, handler)
  15: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  16: tryCatchList(expr, classes, parentenv, handlers)
  17: 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) {    })
  18: test_code(desc, code, env = parent.frame())
  19: test_that("uniquenessPrior", {    imat <- mxMatrix(name = "item", nrow = 3, ncol = 3, values = 1:9,         free = TRUE, labels = paste("l", 1:9, sep = ""))    imat$labels[1, 2] <- "l1"    imat$free[2, 2] <- FALSE    imat$free[3, ] <- FALSE    spec <- list()    spec[1:3] <- rpf.grm(factors = 2)    m1 <- mxModel("test", imat, mxExpectationBA81(spec))    m1 <- mxModel(m1, uniquenessPrior(m1, 2), mxFitFunctionMultigroup(c("uniquenessPrior")))    m1$expectation <- NULL    checkAnalyticDeriv(omxAssignFirstParameters(m1))})
  20: eval(code, test_env)
  21: eval(code, test_env)
  22: 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)
  23: doTryCatch(return(expr), name, parentenv, handler)
  24: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  25: tryCatchList(expr, names[-nh], parentenv, handlers[-nh])
  26: doTryCatch(return(expr), name, parentenv, handler)
  27: tryCatchOne(tryCatchList(expr, names[-nh], parentenv, handlers[-nh]),     names[nh], parentenv, handlers[[nh]])
  28: tryCatchList(expr, classes, parentenv, handlers)
  29: 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) {    })
  30: test_code(NULL, exprs, env)
  31: source_file(path, new.env(parent = env), chdir = TRUE, wrap = wrap)
  32: force(code)
  33: with_reporter(reporter = reporter, start_end_reporter = start_end_reporter,     {        lister$start_file(basename(path))        source_file(path, new.env(parent = env), chdir = TRUE,             wrap = wrap)        end_context()    })
  34: FUN(X[[i]], ...)
  35: lapply(paths, test_file, env = env, reporter = current_reporter,     start_end_reporter = FALSE, load_helpers = FALSE, wrap = wrap)
  36: force(code)
  37: with_reporter(reporter = current_reporter, results <- lapply(paths,     test_file, env = env, reporter = current_reporter, start_end_reporter = FALSE,     load_helpers = FALSE, wrap = wrap))
  38: test_files(paths, reporter = reporter, env = env, stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  39: test_dir(path = test_path, reporter = reporter, env = env, filter = filter,     ..., stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     wrap = wrap)
  40: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  41: test_check("ifaTools")
  An irrecoverable exception occurred. R is aborting now ...
      wrap = wrap)
  40: test_package_dir(package = package, test_path = test_path, filter = filter,     reporter = reporter, ..., stop_on_failure = stop_on_failure,     stop_on_warning = stop_on_warning, wrap = wrap)
  41: test_check("ifaTools")
  An irrecoverable exception occurred. R is aborting now ...