Running ‘testthat.R’ [9s/6s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(FCO)
  > 
  > test_check("FCO")
  This is lavaan 0.6-21
  lavaan is FREE software! Please report any bugs.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    } 3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)     if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})            prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16:     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: 
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19:         dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
      else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: 
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {
  26: eval(code, test_env)
  27:     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
          skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
      new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33:         skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%         skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||% 
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
      StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  38: FUN(X[[i]], ...)
  39: 
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle, 41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    error_call = error_call)
  46: 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,     cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")    env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Saving _problems/test-flex_co-29.R
  Saving _problems/test-flex_co-39.R
  Saving _problems/test-flex_co-52.R
  Saving _problems/test-flex_co-75.R
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  
  Traceback:
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18:  1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))         w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())            prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")            call <- sys.call(-4L)    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is the result fco of gen_fit a list of length rep?",     {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)        expect_type(out$fco, "list")        expect_equal(length(out$fco), 10)    })
  38: eval(code, test_env)
      if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30:     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUEtryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
      invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    if (snapshot_skipped) {        skip("On CRAN")    }    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    else if (!new_expectations && skip_on_empty) {        skip_empty()    }    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal), }, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    end_test = function() {    })
  48:     invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  34: withOneRestart(expr, restarts[[1L]])
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,         skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     error_call = error_call)
  58: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env,     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is the result fco of gen_fit a list of length rep?",     {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)        expect_type(out$fco, "list")        expect_equal(length(out$fco), 10)    })
  38: eval(code, test_env)    stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter, 
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  }, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is mod1 a model?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    expect_s3_class(lavaanify(out$mod1), "data.frame")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: 
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names, tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8:     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: 
  An irrecoverable exception occurred. R is aborting now ...
  try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is mod1 a model?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    expect_s3_class(lavaanify(out$mod1), "data.frame")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is x a data.frame?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    expect_s3_class(out$x, "data.frame")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is x a data.frame?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    expect_s3_class(out$x, "data.frame")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure, 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())    fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
  
   6: eval(sc, parent.frame())
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4:  7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: 
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11:         prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG) tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")            prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17:         if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")                type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14:     .Internal(seterrmessage(msg[1L]))FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
      if (!silent && isTRUE(getOption("show.error.messages"))) {16: doTryCatch(return(expr), name, parentenv, handler)
          cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25:         if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)                type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: }, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  33: doWithOneRestart(return(expr), restart)
  34: 
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,         skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37:     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {test_that("Is standard type NM?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    expect_equal(out$type, "NM")})
  38: eval(code, test_env)
          skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
      }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }36: test_code(code, parent.frame())
  37: test_that("Is standard type NM?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    expect_equal(out$type, "NM")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  }, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
          skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54:     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle, tryCatchList(expr, classes, parentenv, handlers)
  55:     error_call = error_call)tryCatch(code, testthat_abort_reporter = function(cnd) {
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: 
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "HB")
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is type HB taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "HB")    expect_equal(out$type, "HB")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "HB")
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is type HB taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "HB")    expect_equal(out$type, "HB")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler) 2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean, 
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5:     if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8:         if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
          cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14:         w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: 
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
          if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))     invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))            call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")
  26: eval(code, test_env)
          cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: }, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
      generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }25: gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")
  26: eval(code, test_env)
  27: eval(code, test_env)
  28:     else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is type EM taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     expect_equal(out$type, "EM")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40:     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: }, expectation = handle_expectation, packageNotFoundError = function(e) {test_code(code, parent.frame())    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")
  37: test_that("Is type EM taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")    expect_equal(out$type, "EM")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42:     new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
      error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: 45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectationstest_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
      if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is the result fco of gen_fit a list of matrices with two rows?",     {        out <- gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)        expect_type(out$fco, "list")        expect_equal(nrow(do.call("rbind", out$fco)), 20)    })
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is the result fco of gen_fit a list of matrices with two rows?",     {        out <- gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)        expect_type(out$fco, "list")        expect_equal(nrow(do.call("rbind", out$fco)), 20)    })
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Saving _problems/test-gen_fit-99.R
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure, 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4:     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean, lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
      sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa") 6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
          dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13:         w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14:         if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16:     msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: 12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14:         if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
          w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG) 16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18:             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21:         prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24:         if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))
  25: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
      if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }26: eval(code, test_env)
  27: eval(code, test_env)
      invisible(structure(msg, class = "try-error", condition = e))})
  20: 28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectationstry(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
      if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {22: FUN(X[[i]], ...)
  23:         skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)        free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: 
  29: doTryCatch(return(expr), name, parentenv, handler)
  gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: 30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: eval(code, test_env)
  28: withCallingHandlers({tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29:     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: 
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
      })
  36: test_code(code, parent.frame())34: withOneRestart(expr, restarts[[1L]])
  35: 
  37: test_that("Is a second model accepted?", {    out <- gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    expect_s3_class(lavaanify(out$mod2), "data.frame")})
  38:         skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()eval(code, test_env)
  39: eval(code, test_env)    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))
  40: withCallingHandlers({    eval(code, test_env)    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {
  36: test_code(code, parent.frame())
      if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")37: test_that("Is a second model accepted?", {    out <- gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)    expect_s3_class(lavaanify(out$mod2), "data.frame")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: })
  38: eval(code, test_env)
  39: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
      snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: 45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations
  43: tryCatchList(expr, classes, parentenv, handlers)
      if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")    StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  50: FUN(X[[i]], ...)
  51: 45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {
  54: tryCatchList(expr, classes, parentenv, handlers)
      if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)    env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(test_dir = test_dir, test_package = test_package, 
  50: FUN(X[[i]], ...)
      test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  
  58: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env, 53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54:     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
      NULL})
  56: 60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: 
  37: test_that("Is type EM used when DV is TRUE?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)    expect_equal(out$type, "EM")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8:     }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
      call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: 
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54:     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULLtryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env, 
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
      stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
          skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is type EM used when DV is TRUE?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)    expect_equal(out$type, "EM")})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions, 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
      WLS.V = WLS.V, NACOV = NACOV)11: 
  tryCatch(expr, error = function(e) {    call <- conditionCall(e) 3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
      if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w)) 11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }            call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  12: 
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14:     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))         sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: })
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, 24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)
          free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)
  26: eval(code, test_env)26: eval(code, test_env)
  27: eval(code, test_env)
  
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31:     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    new_expectations <- the$test_expectations > starting_expectations    }    if (snapshot_skipped) {    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {
  34: withOneRestart(expr, restarts[[1L]])
      if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is constraining used when DV is TRUE?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)    expect_equal(out$merge.mod, FALSE)35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: 
  37: test_that("Is constraining used when DV is TRUE?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)    expect_equal(out$merge.mod, FALSE)})
  38: eval(code, test_env)
  39: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
      snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: 41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47:         skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48:         skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUEtest_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50:     invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55:     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  52: doTryCatch(return(expr), name, parentenv, handler)
  
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
  tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]] 4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,         w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
      if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})10: tryCatchList(expr, classes, parentenv, handlers)
  11: 
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
          w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17:     }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12:     if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75Ltry(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13:         sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG) generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
              prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
          cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: 19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)
  26: eval(code, test_env)    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
      generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)
  26: eval(code, test_env)
  27: eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33:     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is dv.cutoff set to .9 when DV is TRUE?", {    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)    expect_equal(out$dv.cutoff, 0.9)})
  38: eval(code, test_env)
  33: doWithOneRestart(return(expr), restart)
  
  39: eval(code, test_env)
  40: withCallingHandlers({34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
      snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  36: test_code(code, parent.frame())
  37: test_that("Is dv.cutoff set to .9 when DV is TRUE?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)    expect_equal(out$dv.cutoff, 0.9)})
  38: eval(code, test_env)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
      if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
      snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: 47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
      }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),         skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50:     snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  })
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle, 57:     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Merging is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)doTryCatch(return(expr), name, parentenv, handler)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
  
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))  3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8:             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
          prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)     else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
              prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        cat(msg, file = outFile)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  })
  12: 24: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, parallel::mclapply(1:rep, function(r) {    std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
      generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, merge.mod = TRUE)20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, merge.mod = TRUE)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
      if (on_cran()) {32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37:     eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")test_that("Is the first and second factor merged when DV is TRUE, merge.mod is TRUE and dv.factors is missing?",     {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE,             merge.mod = TRUE)        expect_equal(grepl("F2 =~ ", out$mod2), FALSE)    })    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: }, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())withCallingHandlers({
  37: test_that("Is the first and second factor merged when DV is TRUE, merge.mod is TRUE and dv.factors is missing?",     {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE,             merge.mod = TRUE)        expect_equal(grepl("F2 =~ ", out$mod2), FALSE)    })
  38: eval(code, test_env)
  39: eval(code, test_env)
      eval(code, test_env)40:     new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: withCallingHandlers({    eval(code, test_env)doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    new_expectations <- the$test_expectations > starting_expectations        skip("On CRAN")    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(test_dir = test_dir, test_package = test_package, 
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49:     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50:     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  FUN(X[[i]], ...)An irrecoverable exception occurred. R is aborting now ...
  
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Merging is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,  2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
      NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5:  3: eval(sc, parent.frame())lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: 
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],     if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")                type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], })
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
                  type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: 24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, merge.mod = TRUE,     dv.factors = c("F2", "F3"))
  26: eval(code, test_env)tryCatchList(expr, classes, parentenv, handlers)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {    new_expectations <- the$test_expectations > starting_expectations        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32:         dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
      }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: 23: withOneRestart(expr, restarts[[1L]])lapply(seq_len(cores), inner.do)
  
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations24: parallel::mclapply(1:rep, function(r) {    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37:     generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, merge.mod = TRUE,     dv.factors = c("F2", "F3"))
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {test_that("Is merging used when DV is TRUE, merge.mod is TRUE and dv.factors is provided?",     snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
      {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE,             merge.mod = TRUE, dv.factors = c("F2", "F3"))32:         expect_equal(out$merge.mod, TRUE)tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    })
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
      snapshot_skipped <<- TRUE33:     invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is merging used when DV is TRUE, merge.mod is TRUE and dv.factors is provided?",     {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE,             merge.mod = TRUE, dv.factors = c("F2", "F3"))        expect_equal(out$merge.mod, TRUE)}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    })    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE
  38: eval(code, test_env)
  39:     invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {eval(code, test_env)    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: 
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.cutoff = 0.85)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is dv.cutoff set to .85 taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE,         dv.cutoff = 0.85)    expect_equal(grepl("F2~~0.85*F1", out$mod2), FALSE)})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.cutoff = 0.85)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is dv.cutoff set to .85 taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE,         dv.cutoff = 0.85)    expect_equal(grepl("F2~~0.85*F1", out$mod2), FALSE)})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one, 
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5:     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
  eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8:  6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})    std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: 
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
      free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)        if (is.na(w)) 
  21:             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)                type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: 25: gen_fit(mod1 = mod, x = bb1992, rep = 10, standardized = FALSE)
  26: eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  27: withCallingHandlers(expr, condition = function(cnd) {    if (!is.null(matched) || !matches(cnd)) {        return()    }    if (can_entrace(cnd)) {        cnd <- cnd_entrace(cnd)    }    matched <<- cnd    if (inherits(cnd, "message") || inherits(cnd, "warning")) {        cnd_muffle(cnd)    }    else if (inherits(cnd, "error") || inherits(cnd, "skip")) {        return_from(tl, cnd)lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)    }})
  28: .capture(act$val <- eval_bare(quo_get_expr(.quo), quo_get_env(.quo)),     ...)
  29: quasi_capture(enquo(object), label, capture_matching_condition,     matches = matcher)
  
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, standardized = FALSE)
  26: eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
  27: withCallingHandlers(expr, condition = function(cnd) {    if (!is.null(matched) || !matches(cnd)) {30: expect_condition_matching_("warning", {    {        object    }}, regexp = regexp, class = class, ..., inherit = inherit, info = info,         return()    }    if (can_entrace(cnd)) {        cnd <- cnd_entrace(cnd)    }    matched <<- cnd    if (inherits(cnd, "message") || inherits(cnd, "warning")) {    label = label)
  31: expect_warning(gen_fit(mod1 = mod, x = bb1992, rep = 10, standardized = FALSE))
  32: eval(code, test_env)
  33: eval(code, test_env)
  34: withCallingHandlers({    eval(code, test_env)        cnd_muffle(cnd)    }    else if (inherits(cnd, "error") || inherits(cnd, "skip")) {        return_from(tl, cnd)    }    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {})
  28: .capture(act$val <- eval_bare(quo_get_expr(.quo), quo_get_env(.quo)),     ...)
  29: quasi_capture(enquo(object), label, capture_matching_condition,     matches = matcher)
  30: expect_condition_matching_("warning", {    {        object    }}, regexp = regexp, class = class, ..., inherit = inherit, info = info,     label = label)
  31: expect_warning(gen_fit(mod1 = mod, x = bb1992, rep = 10, standardized = FALSE))
  32: eval(code, test_env)
          skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  35: 33: eval(code, test_env)
  34: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  37: tryCatchList(expr, classes, parentenv, handlers)
  38: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    }        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  39: doWithOneRestart(return(expr), restart)
      invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  35: doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(expr, names, parentenv, handlers[[1L]])40: withOneRestart(expr, restarts[[1L]])
  41: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {
  37: tryCatchList(expr, classes, parentenv, handlers)
  38: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  39: doWithOneRestart(return(expr), restart)
  40: withOneRestart(expr, restarts[[1L]])
  41: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
      else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 42: test_code(code, parent.frame())
  43: test_that("Is a warning produced when standardized is switched off?",     {        expect_warning(gen_fit(mod1 = mod, x = bb1992, rep = 10,             standardized = FALSE))    })
  44: eval(code, test_env)
  45: eval(code, test_env)
  46: withCallingHandlers({    error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  42: test_code(code, parent.frame())
  43: test_that("Is a warning produced when standardized is switched off?",     eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    {        expect_warning(gen_fit(mod1 = mod, x = bb1992, rep = 10,             standardized = FALSE))    })
      else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 44:     error = handle_error, interrupt = handle_interrupt)
  47: doTryCatch(return(expr), name, parentenv, handler)
  48: eval(code, test_env)
  45: eval(code, test_env)
  46: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")tryCatchOne(expr, names, parentenv, handlers[[1L]])
  49: tryCatchList(expr, classes, parentenv, handlers)
  50: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  51: doWithOneRestart(return(expr), restart)
  52: withOneRestart(expr, restarts[[1L]])
  53: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))
  47: doTryCatch(return(expr), name, parentenv, handler)
  48: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  49: tryCatchList(expr, classes, parentenv, handlers)
  50:     }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  54: test_code(code = exprs, env = env, reporter = get_reporter() %||% tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    StopReporter$new())
  55: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    error_call = error_call)
  56: FUN(X[[i]], ...)
  57: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  51: doWithOneRestart(return(expr), restart)
  52: withOneRestart(expr, restarts[[1L]])
  53: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {
  58: doTryCatch(return(expr), name, parentenv, handler)
  59: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  60: tryCatchList(expr, classes, parentenv, handlers)        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))
  61: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
      }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 62: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  63: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
      end_test = function() {    })
  54: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())64: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  
  55: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  56: FUN(X[[i]], ...)
  65: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  66: test_check("FCO")57: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  58: doTryCatch(return(expr), name, parentenv, handler)
  An irrecoverable exception occurred. R is aborting now ...
  
  59: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  60: tryCatchList(expr, classes, parentenv, handlers)
  61: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  62: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  63: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  64: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  65: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  66: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is kurtosis and skewness unequal to 1 when assume.mvn is FALSE?",     {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE)        expect_gt(FCO:::mardia(out$x)[1], 1)        expect_gt(FCO:::mardia(out$x)[1], 1)    })
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is kurtosis and skewness unequal to 1 when assume.mvn is FALSE?",     {        out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE)        expect_gt(FCO:::mardia(out$x)[1], 1)        expect_gt(FCO:::mardia(out$x)[1], 1)    })
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions, eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
      WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)                type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13:     if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: 13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: 
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]FUN(X[[i]], ...)
          w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)23: lapply(seq_len(cores), inner.do)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  24: parallel::mclapply(1:rep, function(r) {27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  36: test_code(code, parent.frame())
  37: test_that("Is the seed set properly?", {    out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)    expect_equal(out1$seed, out2$seed)})29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,         skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33:     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }doWithOneRestart(return(expr), restart)
  34: }, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
      end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is the seed set properly?", {    out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)    expect_equal(out1$seed, out2$seed)})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56:     new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(test_dir = test_dir, test_package = test_package,     test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
          skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: 
  An irrecoverable exception occurred. R is aborting now ...
  withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)
  26: eval(code, test_env)
  27: 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
  eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env) 2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
      new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) { 9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)         skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30:             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectationsgenerator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
      if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35:     call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20:     snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: test_that("Is the seed set properly?", {    out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)    expect_equal(out1$seed, out2$seed)try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: })
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: 
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: 57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle, test_code(code, parent.frame())
  37: test_that("Is the seed set properly?", {    out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10)    out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)    expect_equal(out1$seed, out2$seed)})
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    error_call = error_call)
  58:     if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }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, }, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
      end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  58: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
  
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)    std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]    }        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
      invisible(structure(msg, class = "try-error", condition = e))})
  12: 22: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {tryCatchOne(expr, names, parentenv, handlers[[1L]])    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, 
  18:         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: tryCatchList(expr, classes, parentenv, handlers)eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,         if (is.na(w))     error = handle_error, interrupt = handle_interrupt)            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)    msg <- paste0(prefix, conditionMessage(e), "\n")
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
      snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: 26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43:     if (snapshot_skipped) {        skip("On CRAN")    }tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45:     else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31:     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
      error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one, 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
      sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV) 8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats, 10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")    ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
          if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)  7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L            prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
          sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w)) 19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14:     .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }FUN(X[[i]], ...)    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)25: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26:         dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")eval(code, test_env)
  27:         if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))
  24: parallel::mclapply(1:rep, function(r) {    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  25: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  29: doTryCatch(return(expr), name, parentenv, handler)
  26: eval(code, test_env)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34:     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUEwithOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45:     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: }, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Saving _problems/test-recommend-34.R
  Saving _problems/test-recommend-56.R
  Saving _problems/test-recommend-69.R
  Saving _problems/test-recommend-94.R
  Saving _problems/test-recommend-112.R
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)
          prefix <- paste("Error in", dcall, ": ") 5:         LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9:         .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch))) tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
              call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], 11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
                  type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]26:         w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22:     if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, }, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
          free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: 33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)eval(code, test_env)
  28: withCallingHandlers({    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")        skip(paste0("{", e$package, "} is not installed."))    }    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38:         skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUEFUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40:     invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    })
  36:     cat(conditionMessage(cnd), "\n")    NULL})test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)46: test_files(test_dir = path, test_paths = test_paths, test_package = package,     reporter = reporter, load_helpers = load_helpers, env = env, 
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     load_package = load_package, parallel = parallel, shuffle = shuffle)
      error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: 47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Constraining is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions, 
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
      WLS.V = WLS.V, NACOV = NACOV)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e) 3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)     }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)            prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19:     msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
      invisible(structure(msg, class = "try-error", condition = e))})
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: 25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4",     "F5"), dv.cutoff = 0.9)
  26: eval(code, test_env)
  27: eval(code, test_env)lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  }, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4",     "F5"), dv.cutoff = 0.9)
  26: eval(code, test_env)
  27: eval(code, test_env)29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {31: tryCatchList(expr, classes, parentenv, handlers)
          skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)32: tryCatch(withCallingHandlers({    eval(code, test_env)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
      new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")32: tryCatch(withCallingHandlers({    eval(code, test_env)    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
      new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 
  33: doWithOneRestart(return(expr), restart)    error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 
  34: withOneRestart(expr, restarts[[1L]])
  35:     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(test_dir = test_dir, test_package = test_package,         skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,     env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48:     snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
      error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Merging is selected as the discriminant validity testing option given the provided arguments.
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4",     "F5"), merge.mod = TRUE)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
  
  Traceback:
   1: lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,     slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats,     lavdata = lavdata, lavoptions = lavoptions, WLS.V = WLS.V,     NACOV = NACOV, sample.cov = sample.cov, sample.mean = sample.mean,     sample.th = sample.th, sample.nobs = sample.nobs, ov.names = ov.names,     ov.names.x = ov.names.x, lavpartable = lavpartable)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,     free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,         free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4",     "F5"), merge.mod = TRUE)
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(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,     desc = desc, load_package = load_package, shuffle = shuffle,     error_call = error_call)
  46: 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,     load_package = load_package, parallel = parallel, shuffle = shuffle)
  47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  Saving _problems/test-recommend_dv-43.R
  Saving _problems/test-recommend_dv-51.R
  Saving _problems/test-recommend_dv-59.R
  Saving _problems/test-recommend_dv-68.R
  [ FAIL 14 | WARN 25 | SKIP 0 | PASS 55 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-flex_co.R:24:13'): Is the function warning because of low replications? ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─testthat::expect_warning(...) at test-flex_co.R:24:13
   2. │ └─testthat:::expect_condition_matching_(...)
   3. │   └─testthat:::quasi_capture(...)
   4. │     ├─testthat (local) .capture(...)
   5. │     │ └─base::withCallingHandlers(...)
   6. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   7. └─FCO::flex_co(...)
   8.   └─index %in% names(fits.nna[[1]])
  ── Error ('test-flex_co.R:34:13'): Is the function accepting multiple indices? ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-flex_co.R:34:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::flex_co(...)
   4.   └─index %in% names(fits.nna[[1]])
  ── Error ('test-flex_co.R:47:13'): Is the function reversing quantile definition based on gof? ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-flex_co.R:47:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::flex_co(...)
   4.   └─index %in% names(fits.nna[[1]])
  ── Error ('test-flex_co.R:70:13'): Is the function returning values for two models? ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-flex_co.R:70:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::flex_co(...)
   4.   └─index %in% names(fits.nna[[1]])
  ── Failure ('test-gen_fit.R:99:13'): Is the result fco of gen_fit a list of matrices with two rows? ──
  Expected `nrow(do.call("rbind", out$fco))` to equal 20.
  Differences:
  `actual` is NULL
  `expected` is a double vector (20)
  
  ── Error ('test-recommend.R:29:13'): Are the settings for purpose and focus following the recommendations by Mai et al.? #1 ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-recommend.R:29:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend(...)
   4.   ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index))
   5.   │ └─base::withCallingHandlers(...)
   6.   └─base::lapply(ap, flex_co, fits = fits, index = index)
   7.     └─FCO (local) FUN(X[[i]], ...)
   8.       └─index %in% names(fits.nna[[1]])
  ── Error ('test-recommend.R:51:13'): Are the settings for purpose and focus following the recommendations by Mai et al.? #3 ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-recommend.R:51:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend(...)
   4.   ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index))
   5.   │ └─base::withCallingHandlers(...)
   6.   └─base::lapply(ap, flex_co, fits = fits, index = index)
   7.     └─FCO (local) FUN(X[[i]], ...)
   8.       └─index %in% names(fits.nna[[1]])
  ── Error ('test-recommend.R:62:13'): Are the settings for purpose and focus following the recommendations by Mai et al.? #4 ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-recommend.R:62:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend(...)
   4.   ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index))
   5.   │ └─base::withCallingHandlers(...)
   6.   └─base::lapply(ap, flex_co, fits = fits, index = index)
   7.     └─FCO (local) FUN(X[[i]], ...)
   8.       └─index %in% names(fits.nna[[1]])
  ── Error ('test-recommend.R:86:13'): Is the result rounded properly? ───────────
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-recommend.R:86:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend(...)
   4.   ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index))
   5.   │ └─base::withCallingHandlers(...)
   6.   └─base::lapply(ap, flex_co, fits = fits, index = index)
   7.     └─FCO (local) FUN(X[[i]], ...)
   8.       └─index %in% names(fits.nna[[1]])
  ── Error ('test-recommend.R:104:13'): Are the indices properly used when override is TRUE? ──
  <subscriptOutOfBoundsError/error/condition>
  Error in `fits.nna[[1]]`: subscript out of bounds
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-recommend.R:104:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend(...)
   4.   ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index))
   5.   │ └─base::withCallingHandlers(...)
   6.   └─base::lapply(ap, flex_co, fits = fits, index = index)
   7.     └─FCO (local) FUN(X[[i]], ...)
   8.       └─index %in% names(fits.nna[[1]])
  ── Error ('test-recommend_dv.R:40:13'): Are multiple fit indices supported? ────
  Error in `recommend_dv(fits = fits.dv.merge, index = c("CFI", "SRMR", "GFI"))`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(...) at test-recommend_dv.R:40:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend_dv(...)
  ── Error ('test-recommend_dv.R:49:13'): Is the proper dv technique used? merging? ──
  Error in `recommend_dv(fits = fits.dv.merge, )`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.merge, )) at test-recommend_dv.R:49:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend_dv(fits = fits.dv.merge, )
  ── Error ('test-recommend_dv.R:57:13'): Is the proper dv technique used? constraining? ──
  Error in `recommend_dv(fits = fits.dv.con, )`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.con, )) at test-recommend_dv.R:57:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend_dv(fits = fits.dv.con, )
  ── Error ('test-recommend_dv.R:65:13'): Is the result rounded properly? ────────
  Error in `recommend_dv(fits = fits.dv.con, digits = 5)`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co.
  Backtrace:
      ▆
   1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.con, digits = 5)) at test-recommend_dv.R:65:13
   2. │ └─base::withCallingHandlers(...)
   3. └─FCO::recommend_dv(fits = fits.dv.con, digits = 5)
  
  [ FAIL 14 | WARN 25 | SKIP 0 | PASS 55 ]
  Error:
  ! Test failures.
  Execution halted