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)
   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) 
  Traceback:
   1:             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {lav_samplestats_Gamma(Y = Y, x.idx = x.idx[[g]], cluster.idx = cluster.idx,     fixed.x = fixed.x, conditional.x = conditional.x, meanstructure = meanstructure,         cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
      slopestructure = conditional.x, gamma.n.minus.one = lavoptions$gamma.n.minus.one,     unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: 12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 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,     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) {    ov.names.x = ov.names.x, lavpartable = lavpartable)
      call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L) 4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5:         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(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]])
          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: 10: tryCatchList(expr, classes, parentenv, handlers)
  11: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {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.mod,         free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
          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 : "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")    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))    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
          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_expectations13: 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 (snapshot_skipped) {        skip("On CRAN")    }
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
      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: 18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({        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]))    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()    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)    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)    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)
  
  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)38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  }, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  26: eval(code, test_env)40: doTryCatch(return(expr), name, parentenv, handler)
  41: 
  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()) {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:         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)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")
  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) {
  An irrecoverable exception occurred. R is aborting now ...
          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'
  
   *** 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})
  
  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, 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)
      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())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")
  
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: 48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  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, ...)
  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 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)
  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)
  51: 
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52:     WLS.V = WLS.V, NACOV = NACOV)
   3: lav_lavaan_step05_samplestats(slotSampleStats = slotSampleStats, doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])    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())
  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, 
   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")    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)
          if (is.na(w)) 59:             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
      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 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)
  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)
  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'
  
  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]], ...)
  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")
  Traceback:
  }, 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.")) 1:     }}, 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())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, 
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50:     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: FUN(X[[i]], ...)
  51: 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]])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, 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)
      load_package = load_package, parallel = parallel, shuffle = shuffle)14: FUN(X[[i]], ...)
  
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  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'
  
  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 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]])
  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)
  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 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]])
  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, 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()
  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)
      }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE 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,     invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
      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)
  33: doWithOneRestart(return(expr), restart)
  34:  4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9:         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())tryCatchOne(expr, names, parentenv, handlers[[1L]])
  
  10: tryCatchList(expr, classes, parentenv, handlers)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)
  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)
  40:         prefix <- paste("Error in", dcall, ": ")        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }        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 : "    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    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]])    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)
  43: tryCatchList(expr, classes, parentenv, handlers)
  
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)    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."))
  16: doTryCatch(return(expr), name, parentenv, handler)
      }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart)
      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, ": ")46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)        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")    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: 21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  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)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, 
  50: FUN(X[[i]], ...)
          free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "HB")
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  26: eval(code, test_env)
  27: 52: doTryCatch(return(expr), name, parentenv, handler)
  53: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectationstryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55:     if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56:         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 <<- TRUEwith_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)    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29: 
  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, 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")    ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
      }    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())
   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")
  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:         if (is.na(w))             w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG) 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,             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    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())    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
      }    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)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)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]], ...)
  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)
  15: lapply(X = S, FUN = FUN, ...)
  16:         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) doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
              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())18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {    }    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) 
  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"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: 
  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]]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:         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]))gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")
  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) {    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))
  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")
  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)}, 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]])}, mc.cores = cores)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")
  
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({26: eval(code, test_env)
  27: eval(code, test_env)
  28: 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()    }}, 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."))    }    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- 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)
      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: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31:         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: 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."))test_that("Is type EM taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")    expect_equal(out$type, "EM")})
  38:     }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 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."))    error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[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)
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43:     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) {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")    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:     }    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."))    }test_code(code, parent.frame())
  37: test_that("Is type EM taken over?", {    out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, type = "EM")    expect_equal(out$type, "EM")})
  }, 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)38: eval(code, test_env)
  39: eval(code, test_env)
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations
  46: withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {    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."))    }}, 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() {    })}, 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: 
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle, doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43:     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)
  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")    }52:     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: 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, withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    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)
      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()59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
      }}, 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, 
   *** caught segfault ***
  address 0x110, cause 'invalid permissions'
      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 ...
  
  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,     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)
   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") 8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
   5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch))) 
   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]])
              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], 10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {                type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")        LONG <- 75L    .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))})
          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")12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13:         if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")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]], ...)    .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, 
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
      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]], ...)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:     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 <- 75LtryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)        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  ")    }    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")    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],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(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())    }22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {    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]], ...)    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: 
  23: lapply(seq_len(cores), inner.do)
  24: gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26: eval(code, test_env)
  27: eval(code, test_env)
  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)28: 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({    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."))    }}, 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)
      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) {29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)    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)    new_expectations <- the$test_expectations > starting_expectations29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[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()) {        skip(paste0("{", e$package, "} is not installed."))    }
  31: tryCatchList(expr, classes, parentenv, handlers)
  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,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(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), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(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    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), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())        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() {
  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")})
  38:     })
  36: test_code(code, parent.frame())
  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) {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")})
  38: eval(code, test_env)        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }
  39: eval(code, test_env)
  40: 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    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) {
  41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
      snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43:         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."))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")    }}, 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) {
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47:     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: 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()doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
      }}, 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")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 = 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 <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 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:     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  48: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  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)49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: 
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: 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)tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: 
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: 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, tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    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)
      NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: 59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
  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)An irrecoverable exception occurred. R is aborting now ...
  
  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())
  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)
  
  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)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
   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,     if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())        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
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     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]])    std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: 
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        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 (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]]    }}, 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),         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")    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,     .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))    error_call = error_call)
  50: FUN(X[[i]], ...)
  51: })
  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)lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: doTryCatch(return(expr), name, parentenv, handler)
  
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: 
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     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, ": ")    env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  57: test_files_serial(test_dir = test_dir, test_package = test_package,         LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        if (is.na(w))     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)
              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]))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:     if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  })
  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())
  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,     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())
  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: 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()) {
  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,         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)
      unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3: 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_expectationslav_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,     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."))    }    std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())}, 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)
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
  
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47:  8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)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) {
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))     if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- 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],     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() %||%                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    StopReporter$new())
  49: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  50: FUN(X[[i]], ...)    .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))
  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]])})
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  54: tryCatchList(expr, classes, parentenv, handlers)
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL
  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]], ...)
  })
  56: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])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)
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(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)        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)) 
  59: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  60: test_check("FCO")
              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]))An irrecoverable exception occurred. R is aborting now ...
      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())
  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: 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,     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)) {
  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)        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)        prefix <- paste("Error in", dcall, ": ")
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3:         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: 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)
  try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
   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())
  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) 7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
  
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)
  26: eval(code, test_env)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(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")    }    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]]    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) {        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 : "    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)
      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))})30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({
  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)    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()    }
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18:     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)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)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")        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))     }    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."))    }            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "}, 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() {    })
      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))})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)
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))    expect_equal(out$dv.cutoff, 0.9)})
  38: eval(code, test_env)
  39: eval(code, test_env)
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: 
  40: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {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:         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."))gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE)
  26: eval(code, test_env)
      }}, 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)
  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()    }41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  44: }, 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]])tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: 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."))    }    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)    }}, 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: 
  45: doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
  47: 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()withRestarts(tryCatch(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_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, }, 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() {    })
      error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: test_code(code, parent.frame())
  37: 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)
  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: 50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52: eval(code, test_env)
  39: eval(code, test_env)
  40: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})    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."))    }
  56: with_reporter(reporters$multi, 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)
  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: 41: doTryCatch(return(expr), name, parentenv, handler)
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  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")43: tryCatchList(expr, classes, parentenv, handlers)
  44: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
          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 ...
  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: 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, 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, parent.frame())
  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)
  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()) {
  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,         skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    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:     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: 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, tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())
      }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) { 6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     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:     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
  doWithOneRestart(return(expr), restart)
  46: withOneRestart(expr, restarts[[1L]])
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {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) {    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]]        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        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 : "    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() {    })    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))})
  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)
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: 
  50: FUN(X[[i]], ...)
  51: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  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, ...)52: doTryCatch(return(expr), name, parentenv, handler)
  53: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: 
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  56: 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)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,         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")    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)
          if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")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,     .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)    ..., load_package = "installed")
  60: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  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)
  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 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)
  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 ...
  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: 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]])
  
  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")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  ") 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)    }    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, 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) {    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()) {
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11:         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), 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)    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?",         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  ")    {        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)    })
  38: eval(code, test_env)
  39:     }    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, ...)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."))    }16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: }, 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)
  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  ")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)    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)
  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:         .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: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 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)
      error_call = error_call)25: 
  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: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, merge.mod = TRUE, 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 ...
      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) {    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 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)    })
  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,     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: 
  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, 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    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,     invokeRestart("muffle_cran_snapshot")    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())
  }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  45: doWithOneRestart(return(expr), restart) 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)
  
  46: withOneRestart(expr, restarts[[1L]])
   9: 47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectationstryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11:     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: tryCatch(expr, error = function(e) {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})    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: 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)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]], ...)
  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 ...
  
  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: 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,  8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])    unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
  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)) 
   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,             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))})
      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, 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:     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: 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  ")    }eval(sc, parent.frame())
   6:     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())    }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)    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: 
  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], 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, standardized = FALSE)                type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))
  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)    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,     }    matched <<- cnd    if (inherits(cnd, "message") || inherits(cnd, "warning")) {        cnd_muffle(cnd)    }    else if (inherits(cnd, "error") || inherits(cnd, "skip")) {        return_from(tl, cnd)    }    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]])})
  28: .capture(act$val <- eval_bare(quo_get_expr(.quo), quo_get_env(.quo)),     ...)
  29: quasi_capture(enquo(object), label, capture_matching_condition, 
  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    matches = matcher)
  30: expect_condition_matching_("warning", {    {        object    }        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  ")}, 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)    }    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())    }
  33: eval(code, test_env)
  34: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23:         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, 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)
      error = handle_error, interrupt = handle_interrupt)
  35: doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  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) {37: tryCatchList(expr, classes, parentenv, handlers)
  38: tryCatch(withCallingHandlers({    eval(code, test_env)    if (!is.null(matched) || !matches(cnd)) {        return()    }    if (can_entrace(cnd)) {        cnd <- cnd_entrace(cnd)    }    matched <<- 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 (inherits(cnd, "message") || inherits(cnd, "warning")) {        cnd_muffle(cnd)    }    else if (inherits(cnd, "error") || inherits(cnd, "skip")) {        return_from(tl, 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)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)
  
  39: doWithOneRestart(return(expr), restart)
  40: withOneRestart(expr, restarts[[1L]])
  41: 30: expect_condition_matching_("warning", {    {        object    }withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }}, 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)    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) {
  33: eval(code, test_env)
  34: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    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() {    })    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {
  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,         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)
              standardized = FALSE))    })
  44: eval(code, test_env)
  35: doTryCatch(return(expr), name, parentenv, handler)
  36: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  37: tryCatchList(expr, classes, parentenv, handlers)45: eval(code, test_env)
  46: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {
  38: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }        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_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)
  47:     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)
  doTryCatch(return(expr), name, parentenv, handler)
  48: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  49: tryCatchList(expr, classes, parentenv, handlers)
  40: withOneRestart(expr, restarts[[1L]])
  41: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {50: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")        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),     end_test = function() {    })}, 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: 
  42: test_code(code, parent.frame())doWithOneRestart(return(expr), restart)
  52: 
  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({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {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")    }        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        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),     end_test = function() {}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     })
  54: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())    error = handle_error, interrupt = handle_interrupt)
  47: doTryCatch(return(expr), name, parentenv, handler)
  48: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  49: tryCatchList(expr, classes, parentenv, handlers)
  55: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     error_call = error_call)
  
  50: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }56: FUN(X[[i]], ...)
  57: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    error_call = error_call)
  58: doTryCatch(return(expr), name, parentenv, handler)
  59: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  60: tryCatchList(expr, classes, parentenv, handlers)    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)
  61: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  62: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 
  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) {    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,         skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    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,     }}, 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")    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: }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  54: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  55: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     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)
  58: doTryCatch(return(expr), name, parentenv, handler)
  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: 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: 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")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:         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: 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)
  try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
   4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE, model.type = "cfa")
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf) 5: eval(sc, parent.frame())
   6: eval(sc, parent.frame())
  
  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]], ...) 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)
  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, 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")    error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
          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))})
  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 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)})12: 
  38: eval(code, test_env)
  39: eval(code, test_env)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, ...)
  
  40: withCallingHandlers({16: doTryCatch(return(expr), name, parentenv, handler)
      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) {17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19:     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)
  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, ": ")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()    }        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")}, 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 (w > LONG)             prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    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")    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    }    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) {    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:     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]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: parallel::mclapply(1:rep, function(r) {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:     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: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  54: tryCatchList(expr, classes, parentenv, handlers)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) {
  55: tryCatch(code, testthat_abort_reporter = function(cnd) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")    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))}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  
  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, 29: doTryCatch(return(expr), name, parentenv, handler)
      error_call = error_call)
  58: 30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  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, 31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    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 ...
      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 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    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, 
  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)
      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") 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, 
   5: eval(sc, parent.frame())
      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: 
   5: eval(sc, parent.frame())
   6: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: doTryCatch(return(expr), name, parentenv, handler)
   9: 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]])
  tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: 10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {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)        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)         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  ")            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)    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")    .Internal(seterrmessage(msg[1L]))    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)
  13: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,     free1 = free, s = s, k = k, nf = nf)        .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)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)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: 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, ": ")tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        LONG <- 75L        sm <- strsplit(conditionMessage(e), "\n")[[1L]]        w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")        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 (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:     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))
  gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)
  26: eval(code, test_env)
  27: 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)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."))    }
  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)}, 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]])
      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)
  32:         skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {}, 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]])        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)
  32: tryCatch(withCallingHandlers({    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    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()) {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        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 (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())
  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")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)}, 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)})    expect_equal(out1$seed, out2$seed)})
  
  38: eval(code, test_env)
  39: eval(code, test_env)
  40: 38: eval(code, test_env)
  39: eval(code, test_env)
  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) {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()    }    }}, 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: }, 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)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: 
  42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  43: tryCatchList(expr, classes, parentenv, handlers)
  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), 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()) {    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:         skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  52:     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: 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})withOneRestart(expr, restarts[[1L]])
  47: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations
  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,     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() {    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 ...
      })
  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)
  
  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,  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,     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())    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)
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8:  8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  
  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)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")        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))         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)            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]))        .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)    if (!silent && isTRUE(getOption("show.error.messages"))) {        cat(msg, file = outFile)        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  12: 
  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]], ...)
  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)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])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)) {
  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)        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")        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  ")    }        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)    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)
  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."))
  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)
      }}, 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)25: gen_fit(mod1 = mod, x = bb1992, rep = 10)
  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")    }
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    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) {    if (snapshot_skipped) {        skip("On CRAN")    }    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)
  }, 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, 29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
      error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
  33: doWithOneRestart(return(expr), restart)
  34: 31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    eval(code, test_env)withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    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: }, 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")doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({}, 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)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37:     else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {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:         skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {    snapshot_skipped <<- TRUE    invokeRestart("muffle_cran_snapshot")doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  42: }, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt), error = handle_fatal),     end_test = function() {    })
  36: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  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)44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: 
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 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)
      error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: 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)
  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")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))
  An irrecoverable exception occurred. R is aborting now ...
  
  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,     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)
  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,         .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
      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, 21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24:     std.lv = TRUE, warn = FALSE, model.type = "cfa")
   5: eval(sc, parent.frame())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: 
   6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
  gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10)
  26: eval(code, test_env) 8: doTryCatch(return(expr), name, parentenv, handler)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  27: eval(code, test_env)
  28: 
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(e) {withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    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]]    }    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        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 : "    invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message,     error = handle_error, interrupt = handle_interrupt)
  29:     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)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  
  12: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE), silent = TRUE)
  13: 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) {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]], ...)
          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 <<- TRUE15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])    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]])
  
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    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]]    }    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."))    }        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 : "}, 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() {    })
      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))})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)
  
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: 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)
  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)43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 
  26: eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  45: test_files_serial(test_dir = test_dir, test_package = test_package,     if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {    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,         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,     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:     error = handle_error, interrupt = handle_interrupt)
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  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-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'
  
  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 = 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.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 = 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 ...
  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)
  
  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)
   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,     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:  6: eval(sc, parent.frame())
   7: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,     std.lv = TRUE, warn = FALSE)
   8: 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)
   9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: tryCatchList(expr, classes, parentenv, handlers)
  11: tryCatch(expr, error = function(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]]        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  ")    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]]    }    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))})
          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"))) {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, ...)        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, 
  16: doTryCatch(return(expr), name, parentenv, handler)
      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)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19: 14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)doTryCatch(return(expr), name, parentenv, handler)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
          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")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, ": ")        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  ")        .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]], ...)
  23: lapply(seq_len(cores), inner.do)    invisible(structure(msg, class = "try-error", condition = e))})
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  
  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: 21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)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)
  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)
  28: 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, dv = TRUE, dv.factors = c("F4",     "F5"), dv.cutoff = 0.9)
  26:     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)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)    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)
      new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("On CRAN")    }    else if (!new_expectations && skip_on_empty) {        skip_empty()30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)
  32: tryCatch(withCallingHandlers({    }}, 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)
  29:         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 <<- TRUEdoTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31:     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)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")
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    }    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), error = handle_fatal)
          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() {33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])
  35: withRestarts(tryCatch(withCallingHandlers({    })
  36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: source_file(path, env = env(env), desc = desc, shuffle = shuffle,     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()    }    error_call = error_call)
  38: FUN(X[[i]], ...)
  39: }, 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")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]])
  }, 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) {    cat(conditionMessage(cnd), "\n")    NULL})36: test_code(code = exprs, env = env, reporter = get_reporter() %||%     StopReporter$new())
  37: 
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))
  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, 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)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
      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)
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})47: test_dir("testthat", package = package, reporter = reporter,     ..., load_package = "installed")
  48: test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  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'
  
   *** 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)
      unbiased = lavoptions$gamma.unbiased, Mplus.WLS = FALSE)
   2: lav_samplestats_from_data(lavdata = lavdata, lavoptions = lavoptions,     WLS.V = WLS.V, NACOV = NACOV)
   3:  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, 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)
      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())
   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()) 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)
   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) 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)11: tryCatch(expr, error = function(e) {    call <- conditionCall(e)    if (!is.null(call)) {        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  ")    }        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))     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))            w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],                 type = "b")        if (w > LONG)             prefix <- paste0(prefix, "\n  ")})
  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,     }    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())    }    free1 = free1, free2 = free2, s = s, k = k, nf = nf)
  14: FUN(X[[i]], ...)
  15:     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: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)
  17: 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)
  14: FUN(X[[i]], ...)
  15: lapply(X = S, FUN = FUN, ...)
  16: doTryCatch(return(expr), name, parentenv, handler)18: tryCatchList(expr, classes, parentenv, handlers)
  19: tryCatch(expr, error = function(e) {    call <- conditionCall(e)
  17: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  18: tryCatchList(expr, classes, parentenv, handlers)
  19:     if (!is.null(call)) {        if (identical(call[[1L]], quote(doTryCatch)))             call <- sys.call(-4L)        dcall <- deparse(call, nlines = 1L)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")        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 (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)            prefix <- paste0(prefix, "\n  ")    }    else prefix <- "Error : "    msg <- paste0(prefix, conditionMessage(e), "\n")        .Internal(printDeferredWarnings())    }    invisible(structure(msg, class = "try-error", condition = e))})
  20:     .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))try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: })
  20: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
  21: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
  22: FUN(X[[i]], ...)FUN(X[[i]], ...)
  23: lapply(seq_len(cores), inner.do)
  24: 
  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, 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)        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)
  25: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4",     "F5"), merge.mod = TRUE)
  26: 
  26: eval(code, test_env)
  27: eval(code, test_env)eval(code, test_env)
  27: eval(code, test_env)
  28: withCallingHandlers({    eval(code, test_env)
  28: 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) {    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_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)
  
  29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: tryCatchList(expr, classes, parentenv, handlers)29: doTryCatch(return(expr), name, parentenv, handler)
  30: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  31: 
  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) {        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()) {    }}, expectation = handle_expectation, packageNotFoundError = function(e) {    if (on_cran()) {        skip(paste0("{", e$package, "} is not installed."))    }}, snapshot_on_cran = function(cnd) {        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_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: 
  33: doWithOneRestart(return(expr), restart)
  34: withOneRestart(expr, restarts[[1L]])withRestarts(tryCatch(withCallingHandlers({    eval(code, test_env)    new_expectations <- the$test_expectations > starting_expectations    if (snapshot_skipped) {        skip("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_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), 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:     end_test = function() {    })
  36: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 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)    error_call = error_call)
  40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  
  38: FUN(X[[i]], ...)
  39: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle,     error_call = error_call)
  42: tryCatchList(expr, classes, parentenv, handlers)
  43: 40: doTryCatch(return(expr), name, parentenv, handler)
  41: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")    NULL})
  44: 42: tryCatchList(expr, classes, parentenv, handlers)
  43: tryCatch(code, testthat_abort_reporter = function(cnd) {    cat(conditionMessage(cnd), "\n")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,     NULL})
  44: with_reporter(reporters$multi, lapply(test_paths, test_one_file,     env = env, desc = desc, shuffle = shuffle, error_call = error_call))    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, 
  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:     stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,     load_package = load_package, parallel = parallel, shuffle = shuffle)test_check("FCO")
  An irrecoverable exception occurred. R is aborting now ...
  
  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