CRAN Package Check Results for Package FCO

Last updated on 2026-09-30 01:55:46 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 2.0.2 7.21 236.53 243.74 OK
r-devel-linux-x86_64-debian-gcc 2.0.2 4.57 159.44 164.01 OK
r-devel-linux-x86_64-fedora-clang 2.0.2 158.70 OK
r-devel-linux-x86_64-fedora-gcc 2.0.2 157.17 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.54 208.76 215.30 OK
r-release-linux-x86_64 2.0.2 6.14 211.18 217.32 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 180.00 189.00 OK
r-oldrel-macos-arm64 2.0.2 2.00 59.00 61.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 11.00 242.00 253.00 OK

Check Details

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