CRAN Package Check Results for Package FCO

Last updated on 2026-10-05 16:50:39 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.0.2 6.94 230.29 237.23 OK
r-devel-linux-x86_64-debian-gcc 2.0.2 4.96 163.94 168.90 OK
r-devel-linux-x86_64-fedora-clang 2.0.2 163.66 OK
r-devel-linux-x86_64-fedora-gcc 2.0.2 156.66 OK
r-devel-windows-x86_64 2.0.2 10.00 199.00 209.00 OK
r-patched-linux-x86_64 2.0.2 6.19 209.73 215.92 OK
r-release-linux-x86_64 2.0.2 OK
r-release-macos-arm64 2.0.2 2.00 43.00 45.00 OK
r-release-macos-x86_64 2.0.2 5.00 264.00 269.00 OK
r-release-windows-x86_64 2.0.2 9.00 177.00 186.00 OK
r-oldrel-macos-arm64 2.0.2 2.00 57.00 59.00 ERROR
r-oldrel-macos-x86_64 2.0.2 5.00 275.00 280.00 OK
r-oldrel-windows-x86_64 2.0.2 12.00 249.00 261.00 OK

Check Details

Version: 2.0.2
Check: tests
Result: ERROR Running ‘testthat.R’ [43s/22s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(FCO) > > test_check("FCO") This is lavaan 0.7-2 lavaan is FREE software! Please report any bugs. Constraining is selected as the discriminant validity testing option given the provided arguments. Constraining is selected as the discriminant validity testing option given the provided arguments. Constraining is selected as the discriminant validity testing option given the provided arguments. Merging is selected as the discriminant validity testing option given the provided arguments. Merging is selected as the discriminant validity testing option given the provided arguments. Constraining is selected as the discriminant validity testing option given the provided arguments. *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: lapply(X = S, FUN = FUN, ...) 17: doTryCatch(return(expr), name, parentenv, handler) 18: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: tryCatchList(expr, classes, parentenv, handlers) 20: 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))}) 21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 23: FUN(X[[i]], ...) 24: lapply(seq_len(cores), inner.do) 25: 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) 26: gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE) 27: eval(code, test_env) 28: eval(code, test_env) 29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 33: 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) 34: doWithOneRestart(return(expr), restart) 35: withOneRestart(expr, restarts[[1L]]) 36: 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() { }) *** caught segfault *** 37: address 0x110, cause 'invalid permissions' test_code(code, parent.frame()) 38: 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) }) 39: eval(code, test_env) 40: eval(code, test_env) 41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 42: doTryCatch(return(expr), name, parentenv, handler) 43: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 44: tryCatchList(expr, classes, parentenv, handlers) 45: 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) 46: doWithOneRestart(return(expr), restart) 47: withOneRestart(expr, restarts[[1L]]) 48: 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() { }) 49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 50: Traceback: 1: source_file(path, env = env(env), desc = desc, shuffle = shuffle, lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) error_call = error_call) 2: 51: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, FUN(X[[i]], ...) fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, 52: unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, sampling_weights_type = swt_type) error_call = error_call) 3: 53: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, doTryCatch(return(expr), name, parentenv, handler) wls_v = wls_v, nacov = nacov) 54: 4: tryCatchOne(expr, names, parentenv, handlers[[1L]])lav_step05_samp(slot_sample_stats = slot_sample_stats, 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, 55: ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)tryCatchList(expr, classes, parentenv, handlers) 5: 56: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, tryCatch(code, testthat_abort_reporter = function(cnd) { std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") cat(conditionMessage(cnd), "\n") NULL 6: })eval(sc, parent.frame()) 57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 7: env = env, desc = desc, shuffle = shuffle, error_call = error_call))eval(sc, parent.frame()) 58: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, 8: env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, desc = desc, load_package = load_package, shuffle = shuffle, std.lv = TRUE, warn = FALSE) error_call = error_call) 9: 59: doTryCatch(return(expr), name, parentenv, handler)test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, 10: stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, tryCatchOne(expr, names, parentenv, handlers[[1L]]) load_package = load_package, parallel = parallel, shuffle = shuffle)11: 60: tryCatchList(expr, classes, parentenv, handlers)test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")12: tryCatch(expr, error = function(e) {61: test_check("FCO") call <- conditionCall(e) if (!is.null(call)) {An irrecoverable exception occurred. R is aborting now ... 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: lapply(X = S, FUN = FUN, ...) 17: doTryCatch(return(expr), name, parentenv, handler) 18: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: tryCatchList(expr, classes, parentenv, handlers) 20: 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))}) 21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 23: FUN(X[[i]], ...) 24: lapply(seq_len(cores), inner.do) 25: 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) 26: gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE) 27: eval(code, test_env) 28: eval(code, test_env) 29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 33: 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) 34: doWithOneRestart(return(expr), restart) 35: withOneRestart(expr, restarts[[1L]]) 36: 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() { }) 37: test_code(code, parent.frame()) 38: 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) }) 39: eval(code, test_env) 40: eval(code, test_env) 41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 42: doTryCatch(return(expr), name, parentenv, handler) 43: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 44: tryCatchList(expr, classes, parentenv, handlers) 45: 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) 46: doWithOneRestart(return(expr), restart) 47: withOneRestart(expr, restarts[[1L]]) 48: 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() { }) 49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 51: FUN(X[[i]], ...) 52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 53: doTryCatch(return(expr), name, parentenv, handler) 54: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 55: tryCatchList(expr, classes, parentenv, handlers) 56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 58: 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) 59: 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) 60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 61: 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_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: Traceback: lapply(X = S, FUN = FUN, ...) 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)17: doTryCatch(return(expr), name, parentenv, handler) 2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, 18: fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, tryCatchOne(expr, names, parentenv, handlers[[1L]]) slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], 19: sampling_weights_type = swt_type)tryCatchList(expr, classes, parentenv, handlers) 3: 20: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, tryCatch(expr, error = function(e) { wls_v = wls_v, nacov = nacov) call <- conditionCall(e) if (!is.null(call)) { 4: if (identical(call[[1L]], quote(doTryCatch))) lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, call <- sys.call(-4L) lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, dcall <- deparse(call, nlines = 1L) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, prefix <- paste("Error in", dcall, ": ") ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] 5: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, if (is.na(w)) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") 6: if (w > LONG) eval(sc, parent.frame()) prefix <- paste0(prefix, "\n ") } 7: else prefix <- "Error : "eval(sc, parent.frame()) msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) 8: if (!silent && isTRUE(getOption("show.error.messages"))) {lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, cat(msg, file = outFile) std.lv = TRUE, warn = FALSE) .Internal(printDeferredWarnings()) } 9: invisible(structure(msg, class = "try-error", condition = e))doTryCatch(return(expr), name, parentenv, handler)}) 10: 21: tryCatchOne(expr, names, parentenv, handlers[[1L]])try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 11: 22: tryCatchList(expr, classes, parentenv, handlers)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 12: 23: tryCatch(expr, error = function(e) {FUN(X[[i]], ...) call <- conditionCall(e) if (!is.null(call)) {24: if (identical(call[[1L]], quote(doTryCatch))) lapply(seq_len(cores), inner.do) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L)25: prefix <- paste("Error in", dcall, ": ")parallel::mclapply(1:rep, function(r) { LONG <- 75L generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, sm <- strsplit(conditionMessage(e), "\n")[[1L]] free1 = free, s = s, k = k, nf = nf) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")}, mc.cores = cores) if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b")26: if (w > LONG) gen_fit(mod1 = mod, x = bb1992, rep = 10) prefix <- paste0(prefix, "\n ") }27: else prefix <- "Error : "eval(code, test_env) msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L]))28: if (!silent && isTRUE(getOption("show.error.messages"))) {eval(code, test_env) cat(msg, file = outFile) .Internal(printDeferredWarnings())29: }withCallingHandlers({ invisible(structure(msg, class = "try-error", condition = e)) eval(code, test_env)}) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {13: skip("On CRAN")try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, } std.lv = TRUE, warn = FALSE), silent = TRUE) else if (!new_expectations && skip_on_empty) { skip_empty()14: }generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, }, expectation = handle_expectation, packageNotFoundError = function(e) { free1 = free, s = s, k = k, nf = nf) if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))15: }FUN(X[[i]], ...)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE16: invokeRestart("muffle_cran_snapshot")lapply(X = S, FUN = FUN, ...)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)17: doTryCatch(return(expr), name, parentenv, handler)30: doTryCatch(return(expr), name, parentenv, handler)18: tryCatchOne(expr, names, parentenv, handlers[[1L]])31: tryCatchOne(expr, names, parentenv, handlers[[1L]])19: tryCatchList(expr, classes, parentenv, handlers)32: tryCatchList(expr, classes, parentenv, handlers)20: tryCatch(expr, error = function(e) {33: call <- conditionCall(e)tryCatch(withCallingHandlers({ if (!is.null(call)) { eval(code, test_env) if (identical(call[[1L]], quote(doTryCatch))) new_expectations <- the$test_expectations > starting_expectations call <- sys.call(-4L) if (snapshot_skipped) { dcall <- deparse(call, nlines = 1L) skip("On CRAN") prefix <- paste("Error in", dcall, ": ") } LONG <- 75L else if (!new_expectations && skip_on_empty) { sm <- strsplit(conditionMessage(e), "\n")[[1L]] skip_empty() w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") } if (is.na(w)) }, expectation = handle_expectation, packageNotFoundError = function(e) { w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (on_cran()) { if (w > LONG) skip(paste0("{", e$package, "} is not installed.")) prefix <- paste0(prefix, "\n ") } }}, snapshot_on_cran = function(cnd) { else prefix <- "Error : " snapshot_skipped <<- TRUE msg <- paste0(prefix, conditionMessage(e), "\n") invokeRestart("muffle_cran_snapshot") .Internal(seterrmessage(msg[1L]))}, skip = handle_skip, warning = handle_warning, message = handle_message, if (!silent && isTRUE(getOption("show.error.messages"))) { error = handle_error, interrupt = handle_interrupt), error = handle_fatal) cat(msg, file = outFile) .Internal(printDeferredWarnings())34: }doWithOneRestart(return(expr), restart) invisible(structure(msg, class = "try-error", condition = e)) })35: withOneRestart(expr, restarts[[1L]])21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)36: withRestarts(tryCatch(withCallingHandlers({22: eval(code, test_env)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {23: skip("On CRAN")FUN(X[[i]], ...) } else if (!new_expectations && skip_on_empty) {24: skip_empty()lapply(seq_len(cores), inner.do) } }, expectation = handle_expectation, packageNotFoundError = function(e) {25: parallel::mclapply(1:rep, function(r) { if (on_cran()) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, skip(paste0("{", e$package, "} is not installed.")) free1 = free, s = s, k = k, nf = nf) }}, mc.cores = cores)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE26: invokeRestart("muffle_cran_snapshot")gen_fit(mod1 = mod, x = bb1992, rep = 10)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 27: end_test = function() {eval(code, test_env) })28: eval(code, test_env)37: 29: test_code(code, parent.frame())withCallingHandlers({ eval(code, test_env)38: new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN")test_that("Is the seed set properly?", { } out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) else if (!new_expectations && skip_on_empty) { skip_empty() out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) } expect_equal(out1$seed, out2$seed)}, expectation = handle_expectation, packageNotFoundError = function(e) {}) if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))39: }eval(code, test_env)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")40: }, skip = handle_skip, warning = handle_warning, message = handle_message, eval(code, test_env) error = handle_error, interrupt = handle_interrupt) 30: 41: doTryCatch(return(expr), name, parentenv, handler)withCallingHandlers({ eval(code, test_env)31: new_expectations <- the$test_expectations > starting_expectationstryCatchOne(expr, names, parentenv, handlers[[1L]]) if (snapshot_skipped) { skip("On CRAN")32: }tryCatchList(expr, classes, parentenv, handlers) else if (!new_expectations && skip_on_empty) { skip_empty()33: }tryCatch(withCallingHandlers({}, expectation = handle_expectation, packageNotFoundError = function(e) { eval(code, test_env) if (on_cran()) { new_expectations <- the$test_expectations > starting_expectations skip(paste0("{", e$package, "} is not installed.")) if (snapshot_skipped) { } skip("On CRAN")}, snapshot_on_cran = function(cnd) { } snapshot_skipped <<- TRUE else if (!new_expectations && skip_on_empty) { invokeRestart("muffle_cran_snapshot") skip_empty()}, skip = handle_skip, warning = handle_warning, message = handle_message, } error = handle_error, interrupt = handle_interrupt)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {42: skip(paste0("{", e$package, "} is not installed."))doTryCatch(return(expr), name, parentenv, handler) } }, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE43: tryCatchOne(expr, names, parentenv, handlers[[1L]]) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 44: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)tryCatchList(expr, classes, parentenv, handlers) 34: 45: doWithOneRestart(return(expr), restart)tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations35: if (snapshot_skipped) {withOneRestart(expr, restarts[[1L]]) skip("On CRAN") }36: else if (!new_expectations && skip_on_empty) {withRestarts(tryCatch(withCallingHandlers({ skip_empty() eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations}, expectation = handle_expectation, packageNotFoundError = function(e) { if (snapshot_skipped) { if (on_cran()) { skip("On CRAN") skip(paste0("{", e$package, "} is not installed.")) } } else if (!new_expectations && skip_on_empty) {}, snapshot_on_cran = function(cnd) { skip_empty() snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot")}, expectation = handle_expectation, packageNotFoundError = function(e) {}, skip = handle_skip, warning = handle_warning, message = handle_message, if (on_cran()) { error = handle_error, interrupt = handle_interrupt), error = handle_fatal) skip(paste0("{", e$package, "} is not installed.")) }46: }, snapshot_on_cran = function(cnd) {doWithOneRestart(return(expr), restart) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")47: }, skip = handle_skip, warning = handle_warning, message = handle_message, withOneRestart(expr, restarts[[1L]]) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() {48: })withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env)37: new_expectations <- the$test_expectations > starting_expectationstest_code(code, parent.frame()) if (snapshot_skipped) { skip("On CRAN")38: }test_that("Is the seed set properly?", { else if (!new_expectations && skip_on_empty) { out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) skip_empty() out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) } expect_equal(out1$seed, out2$seed)}, expectation = handle_expectation, packageNotFoundError = function(e) {}) if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))39: }eval(code, test_env)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE40: invokeRestart("muffle_cran_snapshot")eval(code, test_env)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 41: end_test = function() {withCallingHandlers({ }) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations49: if (snapshot_skipped) {test_code(code = exprs, env = env, reporter = get_reporter() %||% skip("On CRAN") StopReporter$new()) } else if (!new_expectations && skip_on_empty) {50: skip_empty()source_file(path, env = env(env), desc = desc, shuffle = shuffle, } error_call = error_call)}, expectation = handle_expectation, packageNotFoundError = function(e) { 51: if (on_cran()) {FUN(X[[i]], ...) skip(paste0("{", e$package, "} is not installed.")) }52: }, snapshot_on_cran = function(cnd) {lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, snapshot_skipped <<- TRUE error_call = error_call) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 53: error = handle_error, interrupt = handle_interrupt)doTryCatch(return(expr), name, parentenv, handler) 42: 54: doTryCatch(return(expr), name, parentenv, handler)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 43: 55: tryCatchOne(expr, names, parentenv, handlers[[1L]])tryCatchList(expr, classes, parentenv, handlers) 44: tryCatchList(expr, classes, parentenv, handlers)56: tryCatch(code, testthat_abort_reporter = function(cnd) {45: cat(conditionMessage(cnd), "\n")tryCatch(withCallingHandlers({ NULL eval(code, test_env)}) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {57: skip("On CRAN") }with_reporter(reporters$multi, lapply(test_paths, test_one_file, else if (!new_expectations && skip_on_empty) { env = env, desc = desc, shuffle = shuffle, error_call = error_call)) skip_empty() }58: }, expectation = handle_expectation, packageNotFoundError = function(e) {test_files_serial(test_dir = test_dir, test_package = test_package, if (on_cran()) { test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, skip(paste0("{", e$package, "} is not installed.")) env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, } desc = desc, load_package = load_package, shuffle = shuffle, }, snapshot_on_cran = function(cnd) { error_call = error_call) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")59: }, skip = handle_skip, warning = handle_warning, message = handle_message, test_files(test_dir = path, test_paths = test_paths, test_package = package, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 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)46: doWithOneRestart(return(expr), restart) 60: test_dir("testthat", package = package, reporter = reporter, 47: ..., load_package = "installed")withOneRestart(expr, restarts[[1L]]) 61: 48: test_check("FCO")withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env)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), end_test = function() { }) 49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 51: FUN(X[[i]], ...) 52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 53: doTryCatch(return(expr), name, parentenv, handler) 54: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 55: tryCatchList(expr, classes, parentenv, handlers) 56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 58: 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) 59: 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) 60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 61: test_check("FCO") An irrecoverable exception occurred. R is aborting now ... *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) *** caught segfault *** address 0x110, cause 'invalid permissions' 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: lapply(X = S, FUN = FUN, ...) 17: doTryCatch(return(expr), name, parentenv, handler) 18: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: tryCatchList(expr, classes, parentenv, handlers) 20: 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))}) 21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 23: FUN(X[[i]], ...) 24: lapply(seq_len(cores), inner.do) 25: 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) 26: gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) 27: eval(code, test_env) 28: eval(code, test_env) 29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 33: 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) 34: doWithOneRestart(return(expr), restart) 35: withOneRestart(expr, restarts[[1L]]) 36: 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() { }) 37: test_code(code, parent.frame()) 38: 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)}) 39: eval(code, test_env) 40: eval(code, test_env) 41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 42: doTryCatch(return(expr), name, parentenv, handler) 43: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 44: tryCatchList(expr, classes, parentenv, handlers) 45: tryCatch(withCallingHandlers({ eval(code, test_env) Traceback: new_expectations <- the$test_expectations > starting_expectations 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) if (snapshot_skipped) { skip("On CRAN") 2: } else if (!new_expectations && skip_on_empty) {lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, skip_empty() fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, } unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], }, expectation = handle_expectation, packageNotFoundError = function(e) { sampling_weights_type = swt_type) if (on_cran()) { 3: skip(paste0("{", e$package, "} is not installed."))lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, } wls_v = wls_v, nacov = nacov)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE 4: invokeRestart("muffle_cran_snapshot")lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, }, skip = handle_skip, warning = handle_warning, message = handle_message, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)46: doWithOneRestart(return(expr), restart) 5: 47: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, withOneRestart(expr, restarts[[1L]]) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 48: 6: withRestarts(tryCatch(withCallingHandlers({eval(sc, parent.frame()) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations 7: if (snapshot_skipped) {eval(sc, parent.frame()) skip("On CRAN") } 8: else if (!new_expectations && skip_on_empty) {lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, skip_empty() std.lv = TRUE, warn = FALSE) } }, expectation = handle_expectation, packageNotFoundError = function(e) { 9: if (on_cran()) {doTryCatch(return(expr), name, parentenv, handler) skip(paste0("{", e$package, "} is not installed.")) } }, snapshot_on_cran = function(cnd) {10: snapshot_skipped <<- TRUEtryCatchOne(expr, names, parentenv, handlers[[1L]]) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 11: error = handle_error, interrupt = handle_interrupt), error = handle_fatal), tryCatchList(expr, classes, parentenv, handlers) end_test = function() { })12: tryCatch(expr, error = function(e) {49: test_code(code = exprs, env = env, reporter = get_reporter() %||% call <- conditionCall(e) StopReporter$new()) if (!is.null(call)) { 50: if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)source_file(path, env = env(env), desc = desc, shuffle = shuffle, dcall <- deparse(call, nlines = 1L) error_call = error_call) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]]51: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) FUN(X[[i]], ...) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b")52: if (w > LONG) lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, prefix <- paste0(prefix, "\n ") error_call = error_call) } else prefix <- "Error : "53: msg <- paste0(prefix, conditionMessage(e), "\n")doTryCatch(return(expr), name, parentenv, handler) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {54: tryCatchOne(expr, names, parentenv, handlers[[1L]]) cat(msg, file = outFile) .Internal(printDeferredWarnings())55: }tryCatchList(expr, classes, parentenv, handlers) invisible(structure(msg, class = "try-error", condition = e)) })56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n")13: NULLtry(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, }) std.lv = TRUE, warn = FALSE), silent = TRUE) 57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 14: env = env, desc = desc, shuffle = shuffle, error_call = error_call)) generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, 58: free1 = free, s = s, k = k, nf = nf)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, 15: error_call = error_call)FUN(X[[i]], ...) 59: 16: test_files(test_dir = path, test_paths = test_paths, test_package = package, lapply(X = S, FUN = FUN, ...) reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 17: load_package = load_package, parallel = parallel, shuffle = shuffle)doTryCatch(return(expr), name, parentenv, handler) 60: 18: test_dir("testthat", package = package, reporter = reporter, tryCatchOne(expr, names, parentenv, handlers[[1L]]) ..., load_package = "installed") 19: 61: tryCatchList(expr, classes, parentenv, handlers)test_check("FCO") 20: An irrecoverable exception occurred. R is aborting now ... 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))}) 21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 23: FUN(X[[i]], ...) 24: lapply(seq_len(cores), inner.do) 25: 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) 26: gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) 27: eval(code, test_env) 28: eval(code, test_env) 29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 33: 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) 34: doWithOneRestart(return(expr), restart) 35: withOneRestart(expr, restarts[[1L]]) 36: 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() { }) 37: test_code(code, parent.frame()) 38: 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)}) 39: eval(code, test_env) 40: eval(code, test_env) 41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 42: doTryCatch(return(expr), name, parentenv, handler) 43: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 44: tryCatchList(expr, classes, parentenv, handlers) 45: 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) 46: doWithOneRestart(return(expr), restart) 47: withOneRestart(expr, restarts[[1L]]) 48: 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() { }) 49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 51: FUN(X[[i]], ...) 52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 53: doTryCatch(return(expr), name, parentenv, handler) 54: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 55: tryCatchList(expr, classes, parentenv, handlers) 56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 58: 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) 59: 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) 60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 61: test_check("FCO") An irrecoverable exception occurred. R is aborting now ... *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: lapply(X = S, FUN = FUN, ...) 17: doTryCatch(return(expr), name, parentenv, handler) 18: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: tryCatchList(expr, classes, parentenv, handlers) 20: 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))}) 21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 23: FUN(X[[i]], ...) 24: lapply(seq_len(cores), inner.do) 25: 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) 26: gen_fit(mod1 = mod, x = bb1992, rep = 10) 27: eval(code, test_env) 28: eval(code, test_env) 29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 33: 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) 34: doWithOneRestart(return(expr), restart) 35: withOneRestart(expr, restarts[[1L]]) 36: 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() { }) 37: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 38: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 39: FUN(X[[i]], ...) 40: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 41: doTryCatch(return(expr), name, parentenv, handler) 42: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 43: tryCatchList(expr, classes, parentenv, handlers) 44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 46: 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) 47: 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) 48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 49: test_check("FCO") An irrecoverable exception occurred. R is aborting now ... *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: lapply(X = S, FUN = FUN, ...) 17: doTryCatch(return(expr), name, parentenv, handler) 18: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: tryCatchList(expr, classes, parentenv, handlers) 20: 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))}) 21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 23: FUN(X[[i]], ...) 24: lapply(seq_len(cores), inner.do) 25: 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) 26: gen_fit(mod1 = mod, x = bb1992, rep = 10) 27: eval(code, test_env) 28: eval(code, test_env) 29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 33: 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) 34: doWithOneRestart(return(expr), restart) 35: withOneRestart(expr, restarts[[1L]]) 36: 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() { }) 37: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 38: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 39: FUN(X[[i]], ...) 40: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 41: doTryCatch(return(expr), name, parentenv, handler) 42: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 43: tryCatchList(expr, classes, parentenv, handlers) 44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 46: 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) 47: 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) 48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 49: 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_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: lapply(X = S, FUN = FUN, ...) Traceback: 1: 17: doTryCatch(return(expr), name, parentenv, handler)lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: 18: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, tryCatchOne(expr, names, parentenv, handlers[[1L]]) fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, 19: unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], tryCatchList(expr, classes, parentenv, handlers) sampling_weights_type = swt_type) 20: 3: tryCatch(expr, error = function(e) {lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, call <- conditionCall(e) wls_v = wls_v, nacov = nacov) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 4: call <- sys.call(-4L)lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, dcall <- deparse(call, nlines = 1L) lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, prefix <- paste("Error in", dcall, ": ") sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, LONG <- 75L ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") 5: if (is.na(w)) lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") type = "b") if (w > LONG) 6: prefix <- paste0(prefix, "\n ")eval(sc, parent.frame()) } else prefix <- "Error : " 7: msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L]))eval(sc, parent.frame()) if (!silent && isTRUE(getOption("show.error.messages"))) { 8: cat(msg, file = outFile) .Internal(printDeferredWarnings())lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, } std.lv = TRUE, warn = FALSE) invisible(structure(msg, class = "try-error", condition = e)) }) 9: doTryCatch(return(expr), name, parentenv, handler) 21: 10: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) tryCatchOne(expr, names, parentenv, handlers[[1L]])22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))11: tryCatchList(expr, classes, parentenv, handlers)23: FUN(X[[i]], ...) 12: 24: lapply(seq_len(cores), inner.do)tryCatch(expr, error = function(e) { call <- conditionCall(e) 25: if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) parallel::mclapply(1:rep, function(r) { call <- sys.call(-4L) generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf) dcall <- deparse(call, nlines = 1L)}, mc.cores = cores) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]]26: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10) if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], 27: type = "b") if (w > LONG) eval(code, test_env) prefix <- paste0(prefix, "\n ") }28: else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n")eval(code, test_env) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {29: cat(msg, file = outFile)withCallingHandlers({ .Internal(printDeferredWarnings()) eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations invisible(structure(msg, class = "try-error", condition = e)) if (snapshot_skipped) {}) skip("On CRAN") }13: else if (!new_expectations && skip_on_empty) {try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) skip_empty() }14: }, expectation = handle_expectation, packageNotFoundError = function(e) {generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, if (on_cran()) { free1 = free1, free2 = free2, s = s, k = k, nf = nf) skip(paste0("{", e$package, "} is not installed.")) } }, snapshot_on_cran = function(cnd) {15: FUN(X[[i]], ...) snapshot_skipped <<- TRUE 16: invokeRestart("muffle_cran_snapshot")lapply(X = S, FUN = FUN, ...)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: 17: doTryCatch(return(expr), name, parentenv, handler)doTryCatch(return(expr), name, parentenv, handler) 31: 18: tryCatchOne(expr, names, parentenv, handlers[[1L]])tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers)19: tryCatchList(expr, classes, parentenv, handlers)33: tryCatch(withCallingHandlers({ eval(code, test_env)20: new_expectations <- the$test_expectations > starting_expectationstryCatch(expr, error = function(e) { call <- conditionCall(e) if (snapshot_skipped) { skip("On CRAN") if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) } call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) else if (!new_expectations && skip_on_empty) { prefix <- paste("Error in", dcall, ": ") skip_empty() LONG <- 75L } sm <- strsplit(conditionMessage(e), "\n")[[1L]]}, expectation = handle_expectation, packageNotFoundError = function(e) { w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (on_cran()) { if (is.na(w)) skip(paste0("{", e$package, "} is not installed.")) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], } type = "b")}, snapshot_on_cran = function(cnd) { if (w > LONG) snapshot_skipped <<- TRUE prefix <- paste0(prefix, "\n ") invokeRestart("muffle_cran_snapshot") }}, skip = handle_skip, warning = handle_warning, message = handle_message, else prefix <- "Error : " error = handle_error, interrupt = handle_interrupt), error = handle_fatal) msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {34: doWithOneRestart(return(expr), restart) cat(msg, file = outFile) .Internal(printDeferredWarnings())35: }withOneRestart(expr, restarts[[1L]]) invisible(structure(msg, class = "try-error", condition = e)) 36: })withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env)21: new_expectations <- the$test_expectations > starting_expectationstry(lapply(X = S, FUN = FUN, ...), silent = TRUE) if (snapshot_skipped) { skip("On CRAN")22: }sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) else if (!new_expectations && skip_on_empty) { skip_empty() 23: }FUN(X[[i]], ...)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {24: lapply(seq_len(cores), inner.do) skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {25: snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")parallel::mclapply(1:rep, function(r) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, }, skip = handle_skip, warning = handle_warning, message = handle_message, free1 = free1, free2 = free2, s = s, k = k, nf = nf) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), }, mc.cores = cores) end_test = function() {26: })gen_fit(mod1 = mod, mod2 = mod2, x = bb1992, rep = 10) 37: 27: test_code(code = exprs, env = env, reporter = get_reporter() %||% eval(code, test_env) StopReporter$new()) 28: 38: eval(code, test_env)source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)29: withCallingHandlers({39: eval(code, test_env)FUN(X[[i]], ...) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {40: skip("On CRAN")lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, } error_call = error_call) else if (!new_expectations && skip_on_empty) { skip_empty()41: }doTryCatch(return(expr), name, parentenv, handler)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {42: skip(paste0("{", e$package, "} is not installed."))tryCatchOne(expr, names, parentenv, handlers[[1L]]) } }, snapshot_on_cran = function(cnd) {43: snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")tryCatchList(expr, classes, parentenv, handlers) }, skip = handle_skip, warning = handle_warning, message = handle_message, 44: error = handle_error, interrupt = handle_interrupt)tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n")30: doTryCatch(return(expr), name, parentenv, handler) NULL}) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]])45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 32: tryCatchList(expr, classes, parentenv, handlers) env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 33: tryCatch(withCallingHandlers({ eval(code, test_env)46: new_expectations <- the$test_expectations > starting_expectationstest_files_serial(test_dir = test_dir, test_package = test_package, if (snapshot_skipped) { test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, skip("On CRAN") env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, } else if (!new_expectations && skip_on_empty) { error_call = error_call) skip_empty() }47: }, expectation = handle_expectation, packageNotFoundError = function(e) {test_files(test_dir = path, test_paths = test_paths, test_package = package, if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, }}, snapshot_on_cran = function(cnd) { load_package = load_package, parallel = parallel, shuffle = shuffle) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, 48: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")34: doWithOneRestart(return(expr), restart) 49: 35: test_check("FCO")withOneRestart(expr, restarts[[1L]]) 36: An irrecoverable exception occurred. R is aborting now ... 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() { }) 37: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 38: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 39: FUN(X[[i]], ...) 40: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 41: doTryCatch(return(expr), name, parentenv, handler) 42: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 43: tryCatchList(expr, classes, parentenv, handlers) 44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 46: 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) 47: 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) 48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 49: test_check("FCO") An irrecoverable exception occurred. R is aborting now ... Saving _problems/test-recommend-34.R Saving _problems/test-recommend-56.R Saving _problems/test-recommend-69.R Saving _problems/test-recommend-94.R Saving _problems/test-recommend-112.R *** caught segfault *** address 0x110, cause 'invalid permissions' *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: 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))}) 13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf) 15: FUN(X[[i]], ...) 16: lapply(X = S, FUN = FUN, ...) 17: doTryCatch(return(expr), name, parentenv, handler) 18: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: tryCatchList(expr, classes, parentenv, handlers) 20: 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))}) 21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) 22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 23: FUN(X[[i]], ...) 24: lapply(seq_len(cores), inner.do) 25: 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) 26: gen_fit(mod1 = mod, x = bb1992, rep = 10) Traceback: 27: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)eval(code, test_env) 2: 28: eval(code, test_env)lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, 29: withCallingHandlers({ unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations 3: if (snapshot_skipped) {lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, skip("On CRAN") wls_v = wls_v, nacov = nacov) } else if (!new_expectations && skip_on_empty) { 4: skip_empty()lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, } lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, }, expectation = handle_expectation, packageNotFoundError = function(e) { sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, if (on_cran()) { ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) skip(paste0("{", e$package, "} is not installed.")) } 5: }, snapshot_on_cran = function(cnd) {lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, snapshot_skipped <<- TRUE std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 6: error = handle_error, interrupt = handle_interrupt)eval(sc, parent.frame()) 30: 7: doTryCatch(return(expr), name, parentenv, handler)eval(sc, parent.frame()) 31: 8: tryCatchOne(expr, names, parentenv, handlers[[1L]])lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE)32: tryCatchList(expr, classes, parentenv, handlers) 9: doTryCatch(return(expr), name, parentenv, handler)33: tryCatch(withCallingHandlers({10: eval(code, test_env)tryCatchOne(expr, names, parentenv, handlers[[1L]]) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {11: skip("On CRAN") }tryCatchList(expr, classes, parentenv, handlers) else if (!new_expectations && skip_on_empty) { skip_empty()12: }tryCatch(expr, error = function(e) {}, expectation = handle_expectation, packageNotFoundError = function(e) { call <- conditionCall(e) if (on_cran()) { if (!is.null(call)) { skip(paste0("{", e$package, "} is not installed.")) if (identical(call[[1L]], quote(doTryCatch))) } call <- sys.call(-4L)}, snapshot_on_cran = function(cnd) { dcall <- deparse(call, nlines = 1L) snapshot_skipped <<- TRUE prefix <- paste("Error in", dcall, ": ") invokeRestart("muffle_cran_snapshot") LONG <- 75L}, skip = handle_skip, warning = handle_warning, message = handle_message, sm <- strsplit(conditionMessage(e), "\n")[[1L]] error = handle_error, interrupt = handle_interrupt), error = handle_fatal) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) 34: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], doWithOneRestart(return(expr), restart) type = "b") if (w > LONG) 35: prefix <- paste0(prefix, "\n ")withOneRestart(expr, restarts[[1L]]) } else prefix <- "Error : "36: msg <- paste0(prefix, conditionMessage(e), "\n")withRestarts(tryCatch(withCallingHandlers({ .Internal(seterrmessage(msg[1L])) eval(code, test_env) if (!silent && isTRUE(getOption("show.error.messages"))) { new_expectations <- the$test_expectations > starting_expectations cat(msg, file = outFile) if (snapshot_skipped) { .Internal(printDeferredWarnings()) skip("On CRAN") } } invisible(structure(msg, class = "try-error", condition = e)) else if (!new_expectations && skip_on_empty) {}) skip_empty() }13: }, expectation = handle_expectation, packageNotFoundError = function(e) {try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, }}, snapshot_on_cran = function(cnd) { free1 = free, s = s, k = k, nf = nf) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")15: }, skip = handle_skip, warning = handle_warning, message = handle_message, FUN(X[[i]], ...) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() {16: })lapply(X = S, FUN = FUN, ...) 37: 17: test_code(code = exprs, env = env, reporter = get_reporter() %||% doTryCatch(return(expr), name, parentenv, handler) StopReporter$new()) 18: 38: tryCatchOne(expr, names, parentenv, handlers[[1L]])source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)19: tryCatchList(expr, classes, parentenv, handlers)39: FUN(X[[i]], ...)20: tryCatch(expr, error = function(e) {40: call <- conditionCall(e)lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, if (!is.null(call)) { error_call = error_call) if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)41: dcall <- deparse(call, nlines = 1L)doTryCatch(return(expr), name, parentenv, handler) prefix <- paste("Error in", dcall, ": ") LONG <- 75L42: sm <- strsplit(conditionMessage(e), "\n")[[1L]]tryCatchOne(expr, names, parentenv, handlers[[1L]]) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) 43: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], tryCatchList(expr, classes, parentenv, handlers) type = "b") if (w > LONG) 44: prefix <- paste0(prefix, "\n ")tryCatch(code, testthat_abort_reporter = function(cnd) { } cat(conditionMessage(cnd), "\n") else prefix <- "Error : " NULL msg <- paste0(prefix, conditionMessage(e), "\n")}) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {45: cat(msg, file = outFile)with_reporter(reporters$multi, lapply(test_paths, test_one_file, .Internal(printDeferredWarnings()) env = env, desc = desc, shuffle = shuffle, error_call = error_call)) } invisible(structure(msg, class = "try-error", condition = e))46: })test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, 21: env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, try(lapply(X = S, FUN = FUN, ...), silent = TRUE) desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))47: 23: test_files(test_dir = path, test_paths = test_paths, test_package = package, FUN(X[[i]], ...) reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 24: load_package = load_package, parallel = parallel, shuffle = shuffle)lapply(seq_len(cores), inner.do) 48: 25: test_dir("testthat", package = package, reporter = reporter, parallel::mclapply(1:rep, function(r) { ..., load_package = "installed") generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)49: }, mc.cores = cores)test_check("FCO") 26: An irrecoverable exception occurred. R is aborting now ... gen_fit(mod1 = mod, x = bb1992, rep = 10) 27: eval(code, test_env) 28: eval(code, test_env) 29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 31: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 33: 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) 34: doWithOneRestart(return(expr), restart) 35: withOneRestart(expr, restarts[[1L]]) 36: 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() { }) 37: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 38: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 39: FUN(X[[i]], ...) 40: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 41: doTryCatch(return(expr), name, parentenv, handler) 42: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 43: tryCatchList(expr, classes, parentenv, handlers) 44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 46: 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) 47: 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) 48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 49: 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_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: Traceback: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, 1: std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 6: eval(sc, parent.frame()) 2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, 7: fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, eval(sc, parent.frame()) slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], 8: sampling_weights_type = swt_type)lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, 9: wls_v = wls_v, nacov = nacov)doTryCatch(return(expr), name, parentenv, handler) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, 11: tryCatchList(expr, classes, parentenv, handlers) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)12: 5: tryCatch(expr, error = function(e) {lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, call <- conditionCall(e) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) 6: prefix <- paste("Error in", dcall, ": ")eval(sc, parent.frame()) LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] 7: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")eval(sc, parent.frame()) if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") 8: if (w > LONG) lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, prefix <- paste0(prefix, "\n ") std.lv = TRUE, warn = FALSE) } else prefix <- "Error : " 9: msg <- paste0(prefix, conditionMessage(e), "\n")doTryCatch(return(expr), name, parentenv, handler) .Internal(seterrmessage(msg[1L]))10: if (!silent && isTRUE(getOption("show.error.messages"))) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) cat(msg, file = outFile) .Internal(printDeferredWarnings())11: }tryCatchList(expr, classes, parentenv, handlers) invisible(structure(msg, class = "try-error", condition = e)) 12: tryCatch(expr, error = function(e) {}) call <- conditionCall(e) if (!is.null(call)) {13: if (identical(call[[1L]], quote(doTryCatch))) try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, call <- sys.call(-4L) std.lv = TRUE, warn = FALSE), silent = TRUE) dcall <- deparse(call, nlines = 1L) 14: prefix <- paste("Error in", dcall, ": ")generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, LONG <- 75L free1 = free1, free2 = free2, s = s, k = k, nf = nf) sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) 15: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], FUN(X[[i]], ...) type = "b") if (w > LONG) 16: prefix <- paste0(prefix, "\n ")lapply(X = S, FUN = FUN, ...) } else prefix <- "Error : "17: msg <- paste0(prefix, conditionMessage(e), "\n")doTryCatch(return(expr), name, parentenv, handler) .Internal(seterrmessage(msg[1L])) 18: if (!silent && isTRUE(getOption("show.error.messages"))) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) cat(msg, file = outFile) .Internal(printDeferredWarnings()) }19: invisible(structure(msg, class = "try-error", condition = e))tryCatchList(expr, classes, parentenv, handlers)}) 20: 13: tryCatch(expr, error = function(e) {try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, call <- conditionCall(e) std.lv = TRUE, warn = FALSE), silent = TRUE) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 14: call <- sys.call(-4L)generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, dcall <- deparse(call, nlines = 1L) free1 = free1, free2 = free2, s = s, k = k, nf = nf) prefix <- paste("Error in", dcall, ": ") LONG <- 75L15: sm <- strsplit(conditionMessage(e), "\n")[[1L]]FUN(X[[i]], ...) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) 16: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], lapply(X = S, FUN = FUN, ...) type = "b") if (w > LONG) 17: prefix <- paste0(prefix, "\n ")doTryCatch(return(expr), name, parentenv, handler) } else prefix <- "Error : "18: msg <- paste0(prefix, conditionMessage(e), "\n")tryCatchOne(expr, names, parentenv, handlers[[1L]]) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile)19: .Internal(printDeferredWarnings())tryCatchList(expr, classes, parentenv, handlers) } invisible(structure(msg, class = "try-error", condition = e)) })20: tryCatch(expr, error = function(e) { call <- conditionCall(e)21: if (!is.null(call)) {try(lapply(X = S, FUN = FUN, ...), silent = TRUE) if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)22: dcall <- deparse(call, nlines = 1L)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) prefix <- paste("Error in", dcall, ": ") LONG <- 75L23: sm <- strsplit(conditionMessage(e), "\n")[[1L]]FUN(X[[i]], ...) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) 24: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], lapply(seq_len(cores), inner.do) type = "b") if (w > LONG) 25: prefix <- paste0(prefix, "\n ")parallel::mclapply(1:rep, function(r) { } generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, else prefix <- "Error : " free1 = free1, free2 = free2, s = s, k = k, nf = nf) msg <- paste0(prefix, conditionMessage(e), "\n")}, mc.cores = cores) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {26: cat(msg, file = outFile)gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", .Internal(printDeferredWarnings()) "F5"), dv.cutoff = 0.9) } invisible(structure(msg, class = "try-error", condition = e))27: })eval(code, test_env) 21: 28: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)eval(code, test_env) 22: 29: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))withCallingHandlers({ eval(code, test_env)23: new_expectations <- the$test_expectations > starting_expectationsFUN(X[[i]], ...) if (snapshot_skipped) { skip("On CRAN")24: }lapply(seq_len(cores), inner.do) else if (!new_expectations && skip_on_empty) { skip_empty()25: }parallel::mclapply(1:rep, function(r) {}, expectation = handle_expectation, packageNotFoundError = function(e) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, if (on_cran()) { free1 = free1, free2 = free2, s = s, k = k, nf = nf) skip(paste0("{", e$package, "} is not installed."))}, mc.cores = cores) } }, snapshot_on_cran = function(cnd) {26: snapshot_skipped <<- TRUEgen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", invokeRestart("muffle_cran_snapshot") "F5"), dv.cutoff = 0.9)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)27: eval(code, test_env)30: doTryCatch(return(expr), name, parentenv, handler)28: eval(code, test_env)31: tryCatchOne(expr, names, parentenv, handlers[[1L]])29: withCallingHandlers({32: eval(code, test_env)tryCatchList(expr, classes, parentenv, handlers) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {33: tryCatch(withCallingHandlers({ skip("On CRAN") eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations else if (!new_expectations && skip_on_empty) { if (snapshot_skipped) { skip_empty() skip("On CRAN") } }}, expectation = handle_expectation, packageNotFoundError = function(e) { else if (!new_expectations && skip_on_empty) { if (on_cran()) { skip_empty() skip(paste0("{", e$package, "} is not installed.")) } }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {}, snapshot_on_cran = function(cnd) { skip(paste0("{", e$package, "} is not installed.")) snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot")}, snapshot_on_cran = function(cnd) {}, skip = handle_skip, warning = handle_warning, message = handle_message, snapshot_skipped <<- TRUE error = handle_error, interrupt = handle_interrupt) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 30: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)doTryCatch(return(expr), name, parentenv, handler) 34: 31: doWithOneRestart(return(expr), restart)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 35: 32: withOneRestart(expr, restarts[[1L]])tryCatchList(expr, classes, parentenv, handlers) 36: 33: withRestarts(tryCatch(withCallingHandlers({tryCatch(withCallingHandlers({ eval(code, test_env) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { 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() skip_empty() } }}, expectation = handle_expectation, packageNotFoundError = function(e) {}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) skip(paste0("{", e$package, "} is not installed.")) } }}, snapshot_on_cran = function(cnd) {}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), error = handle_error, interrupt = handle_interrupt), error = handle_fatal) end_test = function() { })34: doWithOneRestart(return(expr), restart)37: 35: test_code(code = exprs, env = env, reporter = get_reporter() %||% withOneRestart(expr, restarts[[1L]]) StopReporter$new())36: withRestarts(tryCatch(withCallingHandlers({38: eval(code, test_env)source_file(path, env = env(env), desc = desc, shuffle = shuffle, new_expectations <- the$test_expectations > starting_expectations error_call = error_call) if (snapshot_skipped) { skip("On CRAN") }39: else if (!new_expectations && skip_on_empty) { skip_empty()FUN(X[[i]], ...) } 40: }, expectation = handle_expectation, packageNotFoundError = function(e) {lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, if (on_cran()) { error_call = error_call) skip(paste0("{", e$package, "} is not installed.")) }41: }, snapshot_on_cran = function(cnd) {doTryCatch(return(expr), name, parentenv, handler) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 42: error = handle_error, interrupt = handle_interrupt), error = handle_fatal), tryCatchOne(expr, names, parentenv, handlers[[1L]]) end_test = function() { })43: tryCatchList(expr, classes, parentenv, handlers)37: test_code(code = exprs, env = env, reporter = get_reporter() %||% 44: StopReporter$new())tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL38: })source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 39: FUN(X[[i]], ...) env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 40: 46: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, test_files_serial(test_dir = test_dir, test_package = test_package, error_call = error_call) test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 41: desc = desc, load_package = load_package, shuffle = shuffle, doTryCatch(return(expr), name, parentenv, handler) error_call = error_call) 47: 42: test_files(test_dir = path, test_paths = test_paths, test_package = package, tryCatchOne(expr, names, parentenv, handlers[[1L]]) reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 43: load_package = load_package, parallel = parallel, shuffle = shuffle)tryCatchList(expr, classes, parentenv, handlers) 48: 44: test_dir("testthat", package = package, reporter = reporter, tryCatch(code, testthat_abort_reporter = function(cnd) { ..., load_package = "installed") cat(conditionMessage(cnd), "\n") NULL })49: test_check("FCO")45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, An irrecoverable exception occurred. R is aborting now ... env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 46: 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) 47: 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) 48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 49: 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_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_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 = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, 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) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 6: eval(sc, parent.frame()) 7: eval(sc, parent.frame()) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler) 10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 11: tryCatchList(expr, classes, parentenv, handlers) 12: Traceback: tryCatch(expr, error = function(e) { call <- conditionCall(e) 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 2: call <- sys.call(-4L)lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, dcall <- deparse(call, nlines = 1L) fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, prefix <- paste("Error in", dcall, ": ") slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, LONG <- 75L unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sm <- strsplit(conditionMessage(e), "\n")[[1L]] sampling_weights_type = swt_type) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) 3: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, type = "b") wls_v = wls_v, nacov = nacov) if (w > LONG) prefix <- paste0(prefix, "\n ") 4: }lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, else prefix <- "Error : " lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, msg <- paste0(prefix, conditionMessage(e), "\n") ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, cat(msg, file = outFile) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") .Internal(printDeferredWarnings()) } 6: invisible(structure(msg, class = "try-error", condition = e))eval(sc, parent.frame())}) 7: 13: eval(sc, parent.frame())try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 14: std.lv = TRUE, warn = FALSE)generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf) 9: doTryCatch(return(expr), name, parentenv, handler)15: FUN(X[[i]], ...)10: tryCatchOne(expr, names, parentenv, handlers[[1L]])16: lapply(X = S, FUN = FUN, ...)11: tryCatchList(expr, classes, parentenv, handlers)17: doTryCatch(return(expr), name, parentenv, handler) 12: 18: tryCatch(expr, error = function(e) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 19: tryCatchList(expr, classes, parentenv, handlers) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L)20: prefix <- paste("Error in", dcall, ": ")tryCatch(expr, error = function(e) { LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] call <- conditionCall(e) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) if (is.na(w)) call <- sys.call(-4L) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], dcall <- deparse(call, nlines = 1L) type = "b") prefix <- paste("Error in", dcall, ": ") if (w > LONG) LONG <- 75L prefix <- paste0(prefix, "\n ") sm <- strsplit(conditionMessage(e), "\n")[[1L]] } else prefix <- "Error : " w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") msg <- paste0(prefix, conditionMessage(e), "\n") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], .Internal(seterrmessage(msg[1L])) type = "b") if (w > LONG) if (!silent && isTRUE(getOption("show.error.messages"))) { prefix <- paste0(prefix, "\n ") cat(msg, file = outFile) } .Internal(printDeferredWarnings()) else prefix <- "Error : " } msg <- paste0(prefix, conditionMessage(e), "\n") invisible(structure(msg, class = "try-error", condition = e))}) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {13: cat(msg, file = outFile)try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, .Internal(printDeferredWarnings()) std.lv = TRUE, warn = FALSE), silent = TRUE) } invisible(structure(msg, class = "try-error", condition = e))14: })generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf)21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)15: FUN(X[[i]], ...)22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))16: lapply(X = S, FUN = FUN, ...)23: FUN(X[[i]], ...)17: doTryCatch(return(expr), name, parentenv, handler)24: lapply(seq_len(cores), inner.do)18: tryCatchOne(expr, names, parentenv, handlers[[1L]])25: parallel::mclapply(1:rep, function(r) {19: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf)tryCatchList(expr, classes, parentenv, handlers)}, mc.cores = cores) 20: 26: tryCatch(expr, error = function(e) {gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", call <- conditionCall(e) "F5"), merge.mod = TRUE) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 27: eval(code, test_env) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L)28: prefix <- paste("Error in", dcall, ": ")eval(code, test_env) LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]]29: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")withCallingHandlers({ if (is.na(w)) eval(code, test_env) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], new_expectations <- the$test_expectations > starting_expectations type = "b") if (snapshot_skipped) { if (w > LONG) prefix <- paste0(prefix, "\n ") skip("On CRAN") } } else prefix <- "Error : " else if (!new_expectations && skip_on_empty) { msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) skip_empty() if (!silent && isTRUE(getOption("show.error.messages"))) { } cat(msg, file = outFile)}, expectation = handle_expectation, packageNotFoundError = function(e) { .Internal(printDeferredWarnings()) if (on_cran()) { } skip(paste0("{", e$package, "} is not installed.")) invisible(structure(msg, class = "try-error", condition = e)) }})}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")21: }, skip = handle_skip, warning = handle_warning, message = handle_message, try(lapply(X = S, FUN = FUN, ...), silent = TRUE) error = handle_error, interrupt = handle_interrupt) 30: doTryCatch(return(expr), name, parentenv, handler) 22: 31: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))tryCatchOne(expr, names, parentenv, handlers[[1L]]) 23: 32: FUN(X[[i]], ...)tryCatchList(expr, classes, parentenv, handlers) 33: tryCatch(withCallingHandlers({24: eval(code, test_env)lapply(seq_len(cores), inner.do) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {25: skip("On CRAN")parallel::mclapply(1:rep, function(r) { } generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, else if (!new_expectations && skip_on_empty) { free1 = free1, free2 = free2, s = s, k = k, nf = nf) skip_empty()}, mc.cores = cores) } }, expectation = handle_expectation, packageNotFoundError = function(e) {26: if (on_cran()) {gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", skip(paste0("{", e$package, "} is not installed.")) "F5"), merge.mod = TRUE) } }, snapshot_on_cran = function(cnd) {27: snapshot_skipped <<- TRUEeval(code, test_env) invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)28: eval(code, test_env)34: doWithOneRestart(return(expr), restart)29: withCallingHandlers({35: eval(code, test_env)withOneRestart(expr, restarts[[1L]]) new_expectations <- the$test_expectations > starting_expectations36: if (snapshot_skipped) {withRestarts(tryCatch(withCallingHandlers({ skip("On CRAN") eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations else if (!new_expectations && skip_on_empty) { if (snapshot_skipped) { skip_empty() skip("On CRAN") } }}, expectation = handle_expectation, packageNotFoundError = function(e) { else if (!new_expectations && skip_on_empty) { if (on_cran()) { skip_empty() skip(paste0("{", e$package, "} is not installed.")) } }}, expectation = handle_expectation, packageNotFoundError = function(e) {}, snapshot_on_cran = function(cnd) { if (on_cran()) { snapshot_skipped <<- TRUE skip(paste0("{", e$package, "} is not installed.")) invokeRestart("muffle_cran_snapshot") }}, skip = handle_skip, warning = handle_warning, message = handle_message, }, snapshot_on_cran = function(cnd) { error = handle_error, interrupt = handle_interrupt) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")30: }, skip = handle_skip, warning = handle_warning, message = handle_message, doTryCatch(return(expr), name, parentenv, handler) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })31: tryCatchOne(expr, names, parentenv, handlers[[1L]])37: test_code(code = exprs, env = env, reporter = get_reporter() %||% 32: tryCatchList(expr, classes, parentenv, handlers) StopReporter$new()) 33: 38: tryCatch(withCallingHandlers({source_file(path, env = env(env), desc = desc, shuffle = shuffle, eval(code, test_env) error_call = error_call) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {39: skip("On CRAN")FUN(X[[i]], ...) } else if (!new_expectations && skip_on_empty) {40: skip_empty()lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, } error_call = error_call)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {41: skip(paste0("{", e$package, "} is not installed."))doTryCatch(return(expr), name, parentenv, handler) }42: }, snapshot_on_cran = function(cnd) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")43: }, skip = handle_skip, warning = handle_warning, message = handle_message, tryCatchList(expr, classes, parentenv, handlers) error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 44: 34: tryCatch(code, testthat_abort_reporter = function(cnd) {doWithOneRestart(return(expr), restart) cat(conditionMessage(cnd), "\n") NULL35: })withOneRestart(expr, restarts[[1L]]) 45: 36: with_reporter(reporters$multi, lapply(test_paths, test_one_file, withRestarts(tryCatch(withCallingHandlers({ env = env, desc = desc, shuffle = shuffle, error_call = error_call)) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations46: if (snapshot_skipped) {test_files_serial(test_dir = test_dir, test_package = test_package, skip("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, else if (!new_expectations && skip_on_empty) { desc = desc, load_package = load_package, shuffle = shuffle, skip_empty() error_call = error_call) } }, expectation = handle_expectation, packageNotFoundError = function(e) {47: if (on_cran()) {test_files(test_dir = path, test_paths = test_paths, test_package = package, skip(paste0("{", e$package, "} is not installed.")) reporter = reporter, load_helpers = load_helpers, env = env, } stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, }, snapshot_on_cran = function(cnd) { load_package = load_package, parallel = parallel, shuffle = shuffle) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")48: }, skip = handle_skip, warning = handle_warning, message = handle_message, test_dir("testthat", package = package, reporter = reporter, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), ..., load_package = "installed") end_test = function() { })49: test_check("FCO")37: test_code(code = exprs, env = env, reporter = get_reporter() %||% An irrecoverable exception occurred. R is aborting now ... StopReporter$new()) 38: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 39: FUN(X[[i]], ...) 40: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 41: doTryCatch(return(expr), name, parentenv, handler) 42: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 43: tryCatchList(expr, classes, parentenv, handlers) 44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 46: 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) 47: 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) 48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 49: 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 9 | WARN 8 | SKIP 0 | PASS 65 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── 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 9 | WARN 8 | SKIP 0 | PASS 65 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-macos-arm64