CRAN Package Check Results for Package FCO

Last updated on 2026-10-01 11:53:53 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.51 161.23 165.74 OK
r-devel-linux-x86_64-fedora-clang 2.0.2 163.66 OK
r-devel-linux-x86_64-fedora-gcc 2.0.2 5.00 164.87 169.87 OK
r-devel-windows-x86_64 2.0.2 10.00 199.00 209.00 OK
r-patched-linux-x86_64 2.0.2 6.19 209.73 215.92 OK
r-release-linux-x86_64 2.0.2 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 177.00 186.00 OK
r-oldrel-macos-arm64 2.0.2 2.00 55.00 57.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’ [43s/23s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(FCO) > > test_check("FCO") This is lavaan 0.7-2 lavaan is FREE software! Please report any bugs. Constraining is selected as the discriminant validity testing option given the provided arguments. Constraining is selected as the discriminant validity testing option given the provided arguments. Constraining is selected as the discriminant validity testing option given the provided arguments. Merging is selected as the discriminant validity testing option given the provided arguments. Merging is selected as the discriminant validity testing option given the provided arguments. Constraining is selected as the discriminant validity testing option given the provided arguments. *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) *** caught segfault *** 3: address 0x110, cause 'invalid permissions' 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]], ...) Traceback: 24: 1: lapply(seq_len(cores), inner.do)lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 25: 2: parallel::mclapply(1:rep, function(r) {lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, free1 = free, s = s, k = k, nf = nf) slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, }, mc.cores = cores) unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type)26: gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, 27: wls_v = wls_v, nacov = nacov)eval(code, test_env) 4: 28: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, eval(code, test_env) lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, 29: ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)withCallingHandlers({ eval(code, test_env) 5: new_expectations <- the$test_expectations > starting_expectationslavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, if (snapshot_skipped) { std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") skip("On CRAN") } 6: else if (!new_expectations && skip_on_empty) {eval(sc, parent.frame()) skip_empty() } 7: }, expectation = handle_expectation, packageNotFoundError = function(e) {eval(sc, parent.frame()) if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) 8: }lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, }, snapshot_on_cran = function(cnd) { std.lv = TRUE, warn = FALSE) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot") 9: }, skip = handle_skip, warning = handle_warning, message = handle_message, doTryCatch(return(expr), name, parentenv, handler) error = handle_error, interrupt = handle_interrupt) 10: 30: tryCatchOne(expr, names, parentenv, handlers[[1L]])doTryCatch(return(expr), name, parentenv, handler) 11: 31: tryCatchList(expr, classes, parentenv, handlers)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 12: 32: tryCatch(expr, error = function(e) { call <- conditionCall(e)tryCatchList(expr, classes, parentenv, handlers) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 33: call <- sys.call(-4L)tryCatch(withCallingHandlers({ dcall <- deparse(call, nlines = 1L) eval(code, test_env) prefix <- paste("Error in", dcall, ": ") new_expectations <- the$test_expectations > starting_expectations LONG <- 75L if (snapshot_skipped) { sm <- strsplit(conditionMessage(e), "\n")[[1L]] skip("On CRAN") w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") } if (is.na(w)) else if (!new_expectations && skip_on_empty) { w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], skip_empty() type = "b") } if (w > LONG) prefix <- paste0(prefix, "\n ")}, expectation = handle_expectation, packageNotFoundError = function(e) { } if (on_cran()) { else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") skip(paste0("{", e$package, "} is not installed.")) .Internal(seterrmessage(msg[1L])) } if (!silent && isTRUE(getOption("show.error.messages"))) {}, snapshot_on_cran = function(cnd) { cat(msg, file = outFile) snapshot_skipped <<- TRUE .Internal(printDeferredWarnings()) invokeRestart("muffle_cran_snapshot") }}, skip = handle_skip, warning = handle_warning, message = handle_message, invisible(structure(msg, class = "try-error", condition = e)) error = handle_error, interrupt = handle_interrupt), error = handle_fatal)}) 34: 13: doWithOneRestart(return(expr), restart)try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE) 35: 14: withOneRestart(expr, restarts[[1L]])generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)36: withRestarts(tryCatch(withCallingHandlers({15: eval(code, test_env)FUN(X[[i]], ...) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {16: skip("On CRAN")lapply(X = S, FUN = FUN, ...) } else if (!new_expectations && skip_on_empty) {17: skip_empty()doTryCatch(return(expr), name, parentenv, handler) } }, expectation = handle_expectation, packageNotFoundError = function(e) {18: if (on_cran()) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip(paste0("{", e$package, "} is not installed.")) }19: }, snapshot_on_cran = function(cnd) {tryCatchList(expr, classes, parentenv, handlers) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")20: }, skip = handle_skip, warning = handle_warning, message = handle_message, tryCatch(expr, error = function(e) { error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { call <- conditionCall(e) }) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 37: call <- sys.call(-4L)test_code(code, parent.frame()) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ")38: LONG <- 75Ltest_that("Is kurtosis and skewness unequal to 1 when assume.mvn is FALSE?", sm <- strsplit(conditionMessage(e), "\n")[[1L]] { w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE) if (is.na(w)) expect_gt(FCO:::mardia(out$x)[1], 1) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], expect_gt(FCO:::mardia(out$x)[1], 1) type = "b") }) if (w > LONG) prefix <- paste0(prefix, "\n ")39: }eval(code, test_env) else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n")40: .Internal(seterrmessage(msg[1L]))eval(code, test_env) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile)41: .Internal(printDeferredWarnings())withCallingHandlers({ } eval(code, test_env) invisible(structure(msg, class = "try-error", condition = e)) new_expectations <- the$test_expectations > starting_expectations}) if (snapshot_skipped) { skip("On CRAN")21: }try(lapply(X = S, FUN = FUN, ...), silent = TRUE) else if (!new_expectations && skip_on_empty) { skip_empty()22: }sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {23: skip(paste0("{", e$package, "} is not installed."))FUN(X[[i]], ...) } }, snapshot_on_cran = function(cnd) {24: snapshot_skipped <<- TRUElapply(seq_len(cores), inner.do) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 25: error = handle_error, interrupt = handle_interrupt)parallel::mclapply(1:rep, function(r) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, 42: free1 = free, s = s, k = k, nf = nf)doTryCatch(return(expr), name, parentenv, handler)}, mc.cores = cores) 43: 26: tryCatchOne(expr, names, parentenv, handlers[[1L]])gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE) 44: 27: tryCatchList(expr, classes, parentenv, handlers)eval(code, test_env) 45: 28: eval(code, test_env)tryCatch(withCallingHandlers({ eval(code, test_env)29: new_expectations <- the$test_expectations > starting_expectationswithCallingHandlers({ if (snapshot_skipped) { eval(code, test_env) skip("On CRAN") new_expectations <- the$test_expectations > starting_expectations } if (snapshot_skipped) { else if (!new_expectations && skip_on_empty) { skip("On CRAN") skip_empty() } } else if (!new_expectations && skip_on_empty) {}, expectation = handle_expectation, packageNotFoundError = function(e) { skip_empty() 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_error, interrupt = handle_interrupt), error = handle_fatal) 30: 46: doTryCatch(return(expr), name, parentenv, handler)doWithOneRestart(return(expr), restart) 31: 47: tryCatchOne(expr, names, parentenv, handlers[[1L]])withOneRestart(expr, restarts[[1L]]) 32: 48: tryCatchList(expr, classes, parentenv, handlers)withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env)33: new_expectations <- the$test_expectations > starting_expectationstryCatch(withCallingHandlers({ if (snapshot_skipped) { eval(code, test_env) skip("On CRAN") new_expectations <- the$test_expectations > starting_expectations } if (snapshot_skipped) { else if (!new_expectations && skip_on_empty) { skip("On CRAN") skip_empty() } } else if (!new_expectations && skip_on_empty) {}, expectation = handle_expectation, packageNotFoundError = function(e) { skip_empty() if (on_cran()) { } 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), error = handle_fatal), invokeRestart("muffle_cran_snapshot") end_test = function() {}, skip = handle_skip, warning = handle_warning, message = handle_message, }) error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 49: 34: test_code(code = exprs, env = env, reporter = get_reporter() %||% doWithOneRestart(return(expr), restart) StopReporter$new()) 35: 50: withOneRestart(expr, restarts[[1L]])source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)36: withRestarts(tryCatch(withCallingHandlers({51: eval(code, test_env)FUN(X[[i]], ...) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {52: skip("On CRAN")lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, } error_call = error_call) else if (!new_expectations && skip_on_empty) { skip_empty()53: }doTryCatch(return(expr), name, parentenv, handler)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {54: skip(paste0("{", e$package, "} is not installed."))tryCatchOne(expr, names, parentenv, handlers[[1L]]) } }, snapshot_on_cran = function(cnd) {55: snapshot_skipped <<- TRUEtryCatchList(expr, classes, parentenv, handlers) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 56: error = handle_error, interrupt = handle_interrupt), error = handle_fatal), tryCatch(code, testthat_abort_reporter = function(cnd) { end_test = function() { cat(conditionMessage(cnd), "\n") }) NULL })37: test_code(code, parent.frame())57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 38: env = env, desc = desc, shuffle = shuffle, error_call = error_call))test_that("Is kurtosis and skewness unequal to 1 when assume.mvn is FALSE?", {58: out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE)test_files_serial(test_dir = test_dir, test_package = test_package, expect_gt(FCO:::mardia(out$x)[1], 1) test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, expect_gt(FCO:::mardia(out$x)[1], 1) 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)39: eval(code, test_env)59: test_files(test_dir = path, test_paths = test_paths, test_package = package, 40: reporter = reporter, load_helpers = load_helpers, env = env, eval(code, test_env) stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)41: withCallingHandlers({60: eval(code, test_env)test_dir("testthat", package = package, reporter = reporter, new_expectations <- the$test_expectations > starting_expectations ..., load_package = "installed") if (snapshot_skipped) { skip("On CRAN")61: }test_check("FCO") else if (!new_expectations && skip_on_empty) { skip_empty()An irrecoverable exception occurred. R is aborting now ... }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt) 42: doTryCatch(return(expr), name, parentenv, handler) 43: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 44: tryCatchList(expr, classes, parentenv, handlers) 45: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 46: doWithOneRestart(return(expr), restart) 47: withOneRestart(expr, restarts[[1L]]) 48: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { }) 49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new()) 50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call) 51: FUN(X[[i]], ...) 52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 53: doTryCatch(return(expr), name, parentenv, handler) 54: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 55: tryCatchList(expr, classes, parentenv, handlers) 56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL}) 57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 58: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call) 59: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle) 60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 61: test_check("FCO") An irrecoverable exception occurred. R is aborting now ... *** caught segfault *** address 0x110, cause 'invalid permissions' *** caught segfault *** address 0x110, cause 'invalid permissions' Traceback: 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, Traceback: wls_v = wls_v, nacov = nacov) 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, 2: lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], 5: sampling_weights_type = swt_type)lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, 6: wls_v = wls_v, nacov = nacov)eval(sc, parent.frame()) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, 7: lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, eval(sc, parent.frame()) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) 8: 5: lavaan::cfa(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) 6: 9: eval(sc, parent.frame())doTryCatch(return(expr), name, parentenv, handler) 7: 10: eval(sc, parent.frame())tryCatchOne(expr, names, parentenv, handlers[[1L]]) 8: 11: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, tryCatchList(expr, classes, parentenv, handlers) std.lv = TRUE, warn = FALSE) 9: doTryCatch(return(expr), name, parentenv, handler)12: tryCatch(expr, error = function(e) {10: call <- conditionCall(e)tryCatchOne(expr, names, parentenv, handlers[[1L]]) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 11: call <- sys.call(-4L)tryCatchList(expr, classes, parentenv, handlers) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ")12: LONG <- 75LtryCatch(expr, error = function(e) { sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") call <- conditionCall(e) if (is.na(w)) if (!is.null(call)) { w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], if (identical(call[[1L]], quote(doTryCatch))) type = "b") call <- sys.call(-4L) if (w > LONG) dcall <- deparse(call, nlines = 1L) prefix <- paste0(prefix, "\n ") prefix <- paste("Error in", dcall, ": ") } else prefix <- "Error : " LONG <- 75L msg <- paste0(prefix, conditionMessage(e), "\n") sm <- strsplit(conditionMessage(e), "\n")[[1L]] .Internal(seterrmessage(msg[1L])) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) if (is.na(w)) .Internal(printDeferredWarnings()) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], } type = "b") invisible(structure(msg, class = "try-error", condition = e)) if (w > LONG) }) prefix <- paste0(prefix, "\n ") }13: else prefix <- "Error : "try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, msg <- paste0(prefix, conditionMessage(e), "\n") std.lv = TRUE, warn = FALSE), silent = TRUE) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile)14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, .Internal(printDeferredWarnings()) } free1 = free, s = s, k = k, nf = nf) invisible(structure(msg, class = "try-error", condition = e)) })15: FUN(X[[i]], ...)13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 16: std.lv = TRUE, warn = FALSE), silent = TRUE)lapply(X = S, FUN = FUN, ...) 14: 17: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, doTryCatch(return(expr), name, parentenv, handler) free1 = free, s = s, k = k, nf = nf) 18: 15: tryCatchOne(expr, names, parentenv, handlers[[1L]])FUN(X[[i]], ...) 19: 16: tryCatchList(expr, classes, parentenv, handlers)lapply(X = S, FUN = FUN, ...) 20: 17: tryCatch(expr, error = function(e) {doTryCatch(return(expr), name, parentenv, handler) call <- conditionCall(e) if (!is.null(call)) {18: if (identical(call[[1L]], quote(doTryCatch))) tryCatchOne(expr, names, parentenv, handlers[[1L]]) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L)19: prefix <- paste("Error in", dcall, ": ")tryCatchList(expr, classes, parentenv, handlers) LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")20: if (is.na(w)) tryCatch(expr, error = function(e) { w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], call <- conditionCall(e) type = "b") if (!is.null(call)) { if (w > LONG) if (identical(call[[1L]], quote(doTryCatch))) prefix <- paste0(prefix, "\n ") call <- sys.call(-4L) } dcall <- deparse(call, nlines = 1L) else prefix <- "Error : " prefix <- paste("Error in", dcall, ": ") msg <- paste0(prefix, conditionMessage(e), "\n") LONG <- 75L .Internal(seterrmessage(msg[1L])) sm <- strsplit(conditionMessage(e), "\n")[[1L]] if (!silent && isTRUE(getOption("show.error.messages"))) { w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") cat(msg, file = outFile) if (is.na(w)) .Internal(printDeferredWarnings()) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], } type = "b") invisible(structure(msg, class = "try-error", condition = e)) if (w > LONG) }) prefix <- paste0(prefix, "\n ") }21: else prefix <- "Error : "try(lapply(X = S, FUN = FUN, ...), silent = TRUE) msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L]))22: if (!silent && isTRUE(getOption("show.error.messages"))) {sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) 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: parallel::mclapply(1:rep, function(r) {22: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) free1 = free, s = s, k = k, nf = nf) }, mc.cores = cores)23: FUN(X[[i]], ...)26: 24: gen_fit(mod1 = mod, x = bb1992, rep = 10)lapply(seq_len(cores), inner.do) 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.mod, 28: free1 = free, s = s, k = k, nf = nf)eval(code, test_env)}, mc.cores = cores) 29: withCallingHandlers({26: eval(code, test_env)gen_fit(mod1 = mod, x = bb1992, rep = 10) 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) { if (on_cran()) {29: skip(paste0("{", e$package, "} is not installed."))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) else if (!new_expectations && skip_on_empty) { skip_empty() } }, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {30: skip(paste0("{", e$package, "} is not installed."))doTryCatch(return(expr), name, parentenv, handler) } }, snapshot_on_cran = function(cnd) {31: snapshot_skipped <<- TRUEtryCatchOne(expr, names, parentenv, handlers[[1L]]) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 32: error = handle_error, interrupt = handle_interrupt)tryCatchList(expr, classes, parentenv, handlers) 30: 33: doTryCatch(return(expr), name, parentenv, handler)tryCatch(withCallingHandlers({ eval(code, test_env)31: new_expectations <- the$test_expectations > starting_expectationstryCatchOne(expr, names, parentenv, handlers[[1L]]) if (snapshot_skipped) { skip("On CRAN")32: }tryCatchList(expr, classes, parentenv, handlers) else if (!new_expectations && skip_on_empty) { skip_empty()33: }tryCatch(withCallingHandlers({}, expectation = handle_expectation, packageNotFoundError = function(e) { eval(code, test_env) if (on_cran()) { new_expectations <- the$test_expectations > starting_expectations skip(paste0("{", e$package, "} is not installed.")) if (snapshot_skipped) { } skip("On CRAN")}, snapshot_on_cran = function(cnd) { } snapshot_skipped <<- TRUE else if (!new_expectations && skip_on_empty) { invokeRestart("muffle_cran_snapshot") skip_empty()}, skip = handle_skip, warning = handle_warning, message = handle_message, } error = handle_error, interrupt = handle_interrupt), 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) { snapshot_skipped <<- TRUE35: invokeRestart("muffle_cran_snapshot")withOneRestart(expr, restarts[[1L]])}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)36: withRestarts(tryCatch(withCallingHandlers({34: eval(code, test_env)doWithOneRestart(return(expr), restart) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {35: skip("On CRAN")withOneRestart(expr, restarts[[1L]]) } else if (!new_expectations && skip_on_empty) {36: skip_empty()withRestarts(tryCatch(withCallingHandlers({ } eval(code, test_env)}, expectation = handle_expectation, packageNotFoundError = function(e) { new_expectations <- the$test_expectations > starting_expectations if (on_cran()) { if (snapshot_skipped) { skip(paste0("{", e$package, "} is not installed.")) skip("On CRAN") } }}, snapshot_on_cran = function(cnd) { else if (!new_expectations && skip_on_empty) { 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.")) end_test = function() { } })}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE37: invokeRestart("muffle_cran_snapshot")test_code(code, parent.frame())}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 38: end_test = function() {test_that("Is the seed set properly?", { }) out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)37: expect_equal(out1$seed, out2$seed)test_code(code, parent.frame())}) 38: 39: test_that("Is the seed set properly?", {eval(code, test_env) out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)40: expect_equal(out1$seed, out2$seed)eval(code, test_env)}) 41: 39: withCallingHandlers({eval(code, test_env) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations40: if (snapshot_skipped) {eval(code, test_env) skip("On CRAN") }41: 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) {}, 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) skip(paste0("{", e$package, "} is not installed.")) }42: }, snapshot_on_cran = function(cnd) {doTryCatch(return(expr), name, parentenv, handler) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")43: }, skip = handle_skip, warning = handle_warning, message = handle_message, tryCatchOne(expr, names, parentenv, handlers[[1L]]) error = handle_error, interrupt = handle_interrupt) 44: 42: tryCatchList(expr, classes, parentenv, handlers)doTryCatch(return(expr), name, parentenv, handler) 45: 43: tryCatch(withCallingHandlers({tryCatchOne(expr, names, parentenv, handlers[[1L]]) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations44: if (snapshot_skipped) {tryCatchList(expr, classes, parentenv, handlers) skip("On CRAN") }45: 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("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), error = handle_fatal) } }, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE46: invokeRestart("muffle_cran_snapshot")doWithOneRestart(return(expr), restart)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)47: withOneRestart(expr, restarts[[1L]])46: doWithOneRestart(return(expr), restart)48: withRestarts(tryCatch(withCallingHandlers({47: eval(code, test_env)withOneRestart(expr, restarts[[1L]]) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN")48: }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()}, 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), error = handle_fatal), } end_test = function() {}, snapshot_on_cran = function(cnd) { }) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")49: }, skip = handle_skip, warning = handle_warning, message = handle_message, test_code(code = exprs, env = env, reporter = get_reporter() %||% error = handle_error, interrupt = handle_interrupt), error = handle_fatal), StopReporter$new()) end_test = function() { })50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 49: error_call = error_call)test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())51: FUN(X[[i]], ...)50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 52: error_call = error_call)lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call) 53: doTryCatch(return(expr), name, parentenv, handler)51: FUN(X[[i]], ...)54: tryCatchOne(expr, names, parentenv, handlers[[1L]])52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)55: 53: tryCatchList(expr, classes, parentenv, handlers)doTryCatch(return(expr), name, parentenv, handler) 56: 54: tryCatch(code, testthat_abort_reporter = function(cnd) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) cat(conditionMessage(cnd), "\n") NULL55: tryCatchList(expr, classes, parentenv, handlers)}) 56: 57: tryCatch(code, testthat_abort_reporter = function(cnd) {with_reporter(reporters$multi, lapply(test_paths, test_one_file, cat(conditionMessage(cnd), "\n") env = env, desc = desc, shuffle = shuffle, error_call = error_call)) NULL })58: 57: 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, 58: desc = desc, load_package = load_package, shuffle = shuffle, test_files_serial(test_dir = test_dir, test_package = test_package, error_call = error_call) test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 59: desc = desc, load_package = load_package, shuffle = shuffle, test_files(test_dir = path, test_paths = test_paths, test_package = package, error_call = error_call) reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 59: load_package = load_package, parallel = parallel, shuffle = shuffle)test_files(test_dir = path, test_paths = test_paths, test_package = package, 60: reporter = reporter, load_helpers = load_helpers, env = env, test_dir("testthat", package = package, reporter = reporter, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, ..., load_package = "installed") load_package = load_package, parallel = parallel, shuffle = shuffle) 61: 60: test_check("FCO")test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")An irrecoverable exception occurred. R is aborting now ... 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, Traceback: lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, 1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 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, 5: fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type) 6: eval(sc, parent.frame()) 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 7: eval(sc, parent.frame()) 4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, 8: lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, 9: ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)doTryCatch(return(expr), name, parentenv, handler) 5: 10: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, tryCatchOne(expr, names, parentenv, handlers[[1L]]) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 11: 6: tryCatchList(expr, classes, parentenv, handlers)eval(sc, parent.frame()) 12: 7: tryCatch(expr, error = function(e) {eval(sc, parent.frame()) call <- conditionCall(e) if (!is.null(call)) { 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, if (identical(call[[1L]], quote(doTryCatch))) std.lv = TRUE, warn = FALSE) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) 9: prefix <- paste("Error in", dcall, ": ")doTryCatch(return(expr), name, parentenv, handler) LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")10: if (is.na(w)) tryCatchOne(expr, names, parentenv, handlers[[1L]]) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b")11: if (w > LONG) 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()) dcall <- deparse(call, nlines = 1L) } prefix <- paste("Error in", dcall, ": ") invisible(structure(msg, class = "try-error", condition = e)) LONG <- 75L}) sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")13: if (is.na(w)) try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) std.lv = TRUE, warn = FALSE), silent = TRUE) prefix <- paste0(prefix, "\n ") }14: else prefix <- "Error : "generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) free1 = free, s = s, k = k, nf = nf) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile)15: .Internal(printDeferredWarnings())FUN(X[[i]], ...) } invisible(structure(msg, class = "try-error", condition = e))})16: lapply(X = S, FUN = FUN, ...)13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE)17: doTryCatch(return(expr), name, parentenv, handler)14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, 18: free1 = free, s = s, k = k, nf = nf)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 19: 15: FUN(X[[i]], ...)tryCatchList(expr, classes, parentenv, handlers) 16: 20: lapply(X = S, FUN = FUN, ...)tryCatch(expr, error = function(e) { call <- conditionCall(e) 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 <- 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)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], 20: type = "b")tryCatch(expr, error = function(e) { if (w > LONG) call <- conditionCall(e) prefix <- paste0(prefix, "\n ") if (!is.null(call)) { } if (identical(call[[1L]], quote(doTryCatch))) else prefix <- "Error : " call <- sys.call(-4L) msg <- paste0(prefix, conditionMessage(e), "\n") dcall <- deparse(call, nlines = 1L) .Internal(seterrmessage(msg[1L])) prefix <- paste("Error in", dcall, ": ") if (!silent && isTRUE(getOption("show.error.messages"))) { LONG <- 75L cat(msg, file = outFile) sm <- strsplit(conditionMessage(e), "\n")[[1L]] .Internal(printDeferredWarnings()) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") } 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: else prefix <- "Error : "try(lapply(X = S, FUN = FUN, ...), silent = TRUE) msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L]))22: if (!silent && isTRUE(getOption("show.error.messages"))) {sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) cat(msg, file = outFile) .Internal(printDeferredWarnings()) }23: invisible(structure(msg, class = "try-error", condition = e))FUN(X[[i]], ...)}) 24: lapply(seq_len(cores), inner.do)21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)25: parallel::mclapply(1:rep, function(r) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, 22: free1 = free, s = s, k = k, nf = nf)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))}, mc.cores = cores) 23: 26: FUN(X[[i]], ...)gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) 24: 27: lapply(seq_len(cores), inner.do)eval(code, test_env) 25: 28: parallel::mclapply(1:rep, function(r) {eval(code, test_env) generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)29: }, mc.cores = cores)withCallingHandlers({ eval(code, test_env)26: new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) {gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) skip("On CRAN") }27: else if (!new_expectations && skip_on_empty) { skip_empty()eval(code, test_env) } }, expectation = handle_expectation, packageNotFoundError = function(e) {28: if (on_cran()) {eval(code, test_env) skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {29: snapshot_skipped <<- TRUEwithCallingHandlers({ 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")30: } else if (!new_expectations && skip_on_empty) {doTryCatch(return(expr), name, parentenv, handler) skip_empty()31: }tryCatchOne(expr, names, parentenv, handlers[[1L]])}, expectation = handle_expectation, packageNotFoundError = function(e) { 32: if (on_cran()) {tryCatchList(expr, classes, parentenv, handlers) skip(paste0("{", e$package, "} is not installed.")) }33: }, snapshot_on_cran = function(cnd) {tryCatch(withCallingHandlers({ snapshot_skipped <<- TRUE eval(code, test_env) invokeRestart("muffle_cran_snapshot") new_expectations <- the$test_expectations > starting_expectations}, skip = handle_skip, warning = handle_warning, message = handle_message, if (snapshot_skipped) { error = handle_error, interrupt = handle_interrupt) skip("On CRAN") }30: else if (!new_expectations && skip_on_empty) { skip_empty()doTryCatch(return(expr), name, parentenv, handler) } }, expectation = handle_expectation, packageNotFoundError = function(e) {31: if (on_cran()) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip(paste0("{", e$package, "} is not installed.")) }32: }, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUEtryCatchList(expr, classes, parentenv, handlers) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 33: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)tryCatch(withCallingHandlers({ eval(code, test_env)34: doWithOneRestart(return(expr), restart) new_expectations <- the$test_expectations > starting_expectations 35: if (snapshot_skipped) {withOneRestart(expr, restarts[[1L]]) skip("On CRAN") } else if (!new_expectations && skip_on_empty) {36: skip_empty()withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations}, expectation = handle_expectation, packageNotFoundError = function(e) { if (snapshot_skipped) { if (on_cran()) { skip("On CRAN") skip(paste0("{", e$package, "} is not installed.")) } } else if (!new_expectations && skip_on_empty) {}, snapshot_on_cran = function(cnd) { skip_empty() } snapshot_skipped <<- TRUE}, 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), error = handle_fatal) } }, snapshot_on_cran = function(cnd) {34: snapshot_skipped <<- TRUEdoWithOneRestart(return(expr), restart) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 35: withOneRestart(expr, restarts[[1L]]) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() {36: })withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations37: if (snapshot_skipped) {test_code(code, parent.frame()) skip("On CRAN") }38: else if (!new_expectations && skip_on_empty) {test_that("Is the seed set properly?", { out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) skip_empty() out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) } expect_equal(out1$seed, out2$seed)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))}) } }, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE39: invokeRestart("muffle_cran_snapshot")eval(code, test_env)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 40: end_test = function() {eval(code, test_env) }) 41: 37: withCallingHandlers({test_code(code, parent.frame()) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations38: if (snapshot_skipped) {test_that("Is the seed set properly?", { skip("On CRAN") out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) } out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) else if (!new_expectations && skip_on_empty) { expect_equal(out1$seed, out2$seed) skip_empty()}) } }, expectation = handle_expectation, packageNotFoundError = function(e) {39: if (on_cran()) {eval(code, test_env) skip(paste0("{", e$package, "} is not installed.")) }40: }, snapshot_on_cran = function(cnd) {eval(code, test_env) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")41: }, skip = handle_skip, warning = handle_warning, message = handle_message, withCallingHandlers({ error = handle_error, interrupt = handle_interrupt) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations42: if (snapshot_skipped) {doTryCatch(return(expr), name, parentenv, handler) skip("On CRAN") }43: else if (!new_expectations && skip_on_empty) { skip_empty()tryCatchOne(expr, names, parentenv, handlers[[1L]]) } }, expectation = handle_expectation, packageNotFoundError = function(e) {44: if (on_cran()) {tryCatchList(expr, classes, parentenv, handlers) skip(paste0("{", e$package, "} is not installed.")) }45: }, snapshot_on_cran = function(cnd) {tryCatch(withCallingHandlers({ snapshot_skipped <<- TRUE eval(code, test_env) invokeRestart("muffle_cran_snapshot") new_expectations <- the$test_expectations > starting_expectations}, skip = handle_skip, warning = handle_warning, message = handle_message, if (snapshot_skipped) { error = handle_error, interrupt = handle_interrupt) skip("On CRAN") }42: doTryCatch(return(expr), name, parentenv, handler) else if (!new_expectations && skip_on_empty) { skip_empty()43: }tryCatchOne(expr, names, parentenv, handlers[[1L]])}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {44: skip(paste0("{", e$package, "} is not installed."))tryCatchList(expr, classes, parentenv, handlers) } }, snapshot_on_cran = function(cnd) {45: snapshot_skipped <<- TRUE 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) { skip("On CRAN")46: }doWithOneRestart(return(expr), restart) else if (!new_expectations && skip_on_empty) { skip_empty()47: }withOneRestart(expr, restarts[[1L]])}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {48: skip(paste0("{", e$package, "} is not installed.")) }withRestarts(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") if (snapshot_skipped) {}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) skip("On CRAN")46: } else if (!new_expectations && skip_on_empty) {doWithOneRestart(return(expr), restart) skip_empty() }47: withOneRestart(expr, restarts[[1L]])}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))48: }withRestarts(tryCatch(withCallingHandlers({}, snapshot_on_cran = function(cnd) { eval(code, test_env) 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) { if (on_cran()) {49: test_code(code = exprs, env = env, reporter = get_reporter() %||% skip(paste0("{", e$package, "} is not installed.")) } StopReporter$new()) }, snapshot_on_cran = function(cnd) {50: snapshot_skipped <<- TRUEsource_file(path, env = env(env), desc = desc, shuffle = shuffle, invokeRestart("muffle_cran_snapshot") error_call = error_call)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 51: end_test = function() {FUN(X[[i]], ...) }) 52: 49: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, test_code(code = exprs, env = env, reporter = get_reporter() %||% error_call = error_call) StopReporter$new()) 53: 50: doTryCatch(return(expr), name, parentenv, handler)source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)54: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 51: 55: FUN(X[[i]], ...)tryCatchList(expr, classes, parentenv, handlers) 52: 56: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, tryCatch(code, testthat_abort_reporter = function(cnd) { error_call = error_call) cat(conditionMessage(cnd), "\n") NULL53: })doTryCatch(return(expr), name, parentenv, handler) 57: 54: with_reporter(reporters$multi, lapply(test_paths, test_one_file, tryCatchOne(expr, names, parentenv, handlers[[1L]]) env = env, desc = desc, shuffle = shuffle, error_call = error_call)) 55: 58: tryCatchList(expr, classes, parentenv, handlers)test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, 56: env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, tryCatch(code, testthat_abort_reporter = function(cnd) { desc = desc, load_package = load_package, shuffle = shuffle, cat(conditionMessage(cnd), "\n") NULL error_call = error_call)}) 59: 57: test_files(test_dir = path, test_paths = test_paths, test_package = package, with_reporter(reporters$multi, lapply(test_paths, test_one_file, reporter = reporter, load_helpers = load_helpers, env = env, env = env, desc = desc, shuffle = shuffle, error_call = error_call)) stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle) 58: 60: test_files_serial(test_dir = test_dir, test_package = test_package, test_dir("testthat", package = package, reporter = reporter, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, ..., load_package = "installed") env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, 61: error_call = error_call)test_check("FCO") 59: An irrecoverable exception occurred. R is aborting now ... 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: Traceback: withCallingHandlers({ 1: eval(code, test_env)lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { 2: skip("On CRAN")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, else if (!new_expectations && skip_on_empty) { slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, skip_empty() unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], } sampling_weights_type = swt_type)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { 3: skip(paste0("{", e$package, "} is not installed."))lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, } wls_v = wls_v, nacov = nacov)}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE 4: invokeRestart("muffle_cran_snapshot")lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, }, skip = handle_skip, warning = handle_warning, message = handle_message, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, error = handle_error, interrupt = handle_interrupt) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)30: doTryCatch(return(expr), name, parentenv, handler) 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, 31: std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")tryCatchOne(expr, names, parentenv, handlers[[1L]]) 32: tryCatchList(expr, classes, parentenv, handlers) 6: eval(sc, parent.frame())33: tryCatch(withCallingHandlers({ 7: eval(code, test_env)eval(sc, parent.frame()) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { 8: skip("On CRAN")lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, } std.lv = TRUE, warn = FALSE) else if (!new_expectations && skip_on_empty) { skip_empty() 9: }doTryCatch(return(expr), name, parentenv, handler)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) {10: skip(paste0("{", e$package, "} is not installed."))tryCatchOne(expr, names, parentenv, handlers[[1L]]) } }, snapshot_on_cran = function(cnd) {11: snapshot_skipped <<- TRUEtryCatchList(expr, classes, parentenv, handlers) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 12: error = handle_error, interrupt = handle_interrupt), error = handle_fatal)tryCatch(expr, error = function(e) { call <- conditionCall(e)34: if (!is.null(call)) {doWithOneRestart(return(expr), restart) if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)35: dcall <- deparse(call, nlines = 1L)withOneRestart(expr, restarts[[1L]]) prefix <- paste("Error in", dcall, ": ") LONG <- 75L36: sm <- strsplit(conditionMessage(e), "\n")[[1L]]withRestarts(tryCatch(withCallingHandlers({ w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") eval(code, test_env) if (is.na(w)) new_expectations <- the$test_expectations > starting_expectations w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], if (snapshot_skipped) { type = "b") skip("On CRAN") if (w > LONG) } prefix <- paste0(prefix, "\n ") else if (!new_expectations && skip_on_empty) { } skip_empty() else prefix <- "Error : " } msg <- paste0(prefix, conditionMessage(e), "\n")}, expectation = handle_expectation, packageNotFoundError = function(e) { .Internal(seterrmessage(msg[1L])) if (on_cran()) { if (!silent && isTRUE(getOption("show.error.messages"))) { skip(paste0("{", e$package, "} is not installed.")) cat(msg, file = outFile) } .Internal(printDeferredWarnings())}, snapshot_on_cran = function(cnd) { } snapshot_skipped <<- TRUE invisible(structure(msg, class = "try-error", condition = e)) invokeRestart("muffle_cran_snapshot")})}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 13: end_test = function() {try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, }) std.lv = TRUE, warn = FALSE), silent = TRUE) 37: 14: test_code(code = exprs, env = env, reporter = get_reporter() %||% generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, StopReporter$new()) free1 = free, s = s, k = k, nf = nf) 38: 15: source_file(path, env = env(env), desc = desc, shuffle = shuffle, FUN(X[[i]], ...) error_call = error_call) 16: 39: FUN(X[[i]], ...)lapply(X = S, FUN = FUN, ...) 40: 17: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, doTryCatch(return(expr), name, parentenv, handler) error_call = error_call) 18: 41: tryCatchOne(expr, names, parentenv, handlers[[1L]])doTryCatch(return(expr), name, parentenv, handler) 19: 42: tryCatchList(expr, classes, parentenv, handlers)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 20: 43: tryCatch(expr, error = function(e) {tryCatchList(expr, classes, parentenv, handlers) call <- conditionCall(e) if (!is.null(call)) {44: if (identical(call[[1L]], quote(doTryCatch))) tryCatch(code, testthat_abort_reporter = function(cnd) { call <- sys.call(-4L) cat(conditionMessage(cnd), "\n") dcall <- deparse(call, nlines = 1L) NULL prefix <- paste("Error in", dcall, ": ")}) LONG <- 75L 45: sm <- strsplit(conditionMessage(e), "\n")[[1L]]with_reporter(reporters$multi, lapply(test_paths, test_one_file, w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") env = env, desc = desc, shuffle = shuffle, error_call = error_call)) if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], 46: type = "b")test_files_serial(test_dir = test_dir, test_package = test_package, if (w > LONG) test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, prefix <- paste0(prefix, "\n ") env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, } desc = desc, load_package = load_package, shuffle = shuffle, else prefix <- "Error : " error_call = error_call) msg <- paste0(prefix, conditionMessage(e), "\n")47: .Internal(seterrmessage(msg[1L]))test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, if (!silent && isTRUE(getOption("show.error.messages"))) { stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, cat(msg, file = outFile) load_package = load_package, parallel = parallel, shuffle = shuffle) .Internal(printDeferredWarnings()) }48: invisible(structure(msg, class = "try-error", condition = e))test_dir("testthat", package = package, reporter = reporter, }) ..., load_package = "installed") 21: 49: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)test_check("FCO") 22: An irrecoverable exception occurred. R is aborting now ... 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) 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.")) } *** caught segfault *** }, snapshot_on_cran = function(cnd) {address 0x110, cause 'invalid permissions' snapshot_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]] *** caught segfault *** w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")address 0x110, cause 'invalid permissions' 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 ... 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 *** *** caught segfault *** address 0x110, cause 'invalid permissions' 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) Traceback: 1: 3: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov) 2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, 4: fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, sampling_weights_type = swt_type) ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) 3: 5: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, wls_v = wls_v, nacov = nacov) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 4: 6: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, eval(sc, parent.frame()) lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, 7: ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)eval(sc, parent.frame()) 8: 5: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 9: 6: doTryCatch(return(expr), name, parentenv, handler) eval(sc, parent.frame())10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7: eval(sc, parent.frame())11: tryCatchList(expr, classes, parentenv, handlers) 8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 12: tryCatch(expr, error = function(e) { std.lv = TRUE, warn = FALSE) call <- conditionCall(e) 9: if (!is.null(call)) {doTryCatch(return(expr), name, parentenv, handler) if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)10: tryCatchOne(expr, names, parentenv, handlers[[1L]]) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L11: 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)) 12: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], tryCatch(expr, error = function(e) { type = "b") call <- conditionCall(e) if (!is.null(call)) { if (w > LONG) if (identical(call[[1L]], quote(doTryCatch))) prefix <- paste0(prefix, "\n ") call <- sys.call(-4L) } dcall <- deparse(call, nlines = 1L) else prefix <- "Error : " prefix <- paste("Error in", dcall, ": ") msg <- paste0(prefix, conditionMessage(e), "\n") LONG <- 75L .Internal(seterrmessage(msg[1L])) sm <- strsplit(conditionMessage(e), "\n")[[1L]] if (!silent && isTRUE(getOption("show.error.messages"))) { w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") cat(msg, file = outFile) if (is.na(w)) .Internal(printDeferredWarnings()) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") } if (w > LONG) invisible(structure(msg, class = "try-error", condition = e)) prefix <- paste0(prefix, "\n ")}) } else prefix <- "Error : "13: msg <- paste0(prefix, conditionMessage(e), "\n")try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, .Internal(seterrmessage(msg[1L])) std.lv = TRUE, warn = FALSE), silent = TRUE) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile)14: .Internal(printDeferredWarnings())generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, } invisible(structure(msg, class = "try-error", condition = e)) free1 = free1, free2 = free2, s = s, k = k, nf = nf) }) 15: 13: FUN(X[[i]], ...)try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE)16: lapply(X = S, FUN = FUN, ...)14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, 17: free1 = free1, free2 = free2, s = s, k = k, nf = nf) 15: doTryCatch(return(expr), name, parentenv, handler)FUN(X[[i]], ...) 16: 18: lapply(X = S, FUN = FUN, ...)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 17: 19: doTryCatch(return(expr), name, parentenv, handler)tryCatchList(expr, classes, parentenv, handlers) 20: 18: tryCatch(expr, error = function(e) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) call <- conditionCall(e) if (!is.null(call)) {19: if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)tryCatchList(expr, classes, parentenv, handlers) dcall <- deparse(call, nlines = 1L)20: prefix <- paste("Error in", dcall, ": ")tryCatch(expr, error = function(e) { LONG <- 75L call <- conditionCall(e) sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (!is.null(call)) { if (is.na(w)) if (identical(call[[1L]], quote(doTryCatch))) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], call <- sys.call(-4L) type = "b") dcall <- deparse(call, nlines = 1L) if (w > LONG) prefix <- paste("Error in", dcall, ": ") LONG <- 75L 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)) else prefix <- "Error : " w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], msg <- paste0(prefix, conditionMessage(e), "\n") type = "b") .Internal(seterrmessage(msg[1L])) if (w > LONG) if (!silent && isTRUE(getOption("show.error.messages"))) { prefix <- paste0(prefix, "\n ") cat(msg, file = outFile) } .Internal(printDeferredWarnings()) } else prefix <- "Error : " invisible(structure(msg, class = "try-error", condition = e)) msg <- paste0(prefix, conditionMessage(e), "\n")}) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile)21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE) .Internal(printDeferredWarnings()) } 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: FUN(X[[i]], ...) parallel::mclapply(1:rep, function(r) {24: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, lapply(seq_len(cores), inner.do) free1 = free1, free2 = free2, s = s, k = k, nf = nf)25: }, mc.cores = cores)parallel::mclapply(1:rep, function(r) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, 26: free1 = free1, free2 = free2, s = s, k = k, nf = nf)gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", }, mc.cores = cores) "F5"), dv.cutoff = 0.9) 26: 27: gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", eval(code, test_env) "F5"), dv.cutoff = 0.9) 28: 27: eval(code, test_env)eval(code, test_env) 29: 28: eval(code, test_env)withCallingHandlers({ eval(code, test_env)29: 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) { } else if (!new_expectations && skip_on_empty) { skip("On CRAN") skip_empty() } }}, expectation = handle_expectation, packageNotFoundError = function(e) { else if (!new_expectations && skip_on_empty) { if (on_cran()) { skip_empty() skip(paste0("{", e$package, "} is not installed.")) }}, expectation = handle_expectation, packageNotFoundError = function(e) { } if (on_cran()) {}, snapshot_on_cran = function(cnd) { skip(paste0("{", e$package, "} is not installed.")) snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot")}, snapshot_on_cran = function(cnd) {}, skip = handle_skip, warning = handle_warning, message = handle_message, snapshot_skipped <<- TRUE error = handle_error, interrupt = handle_interrupt) invokeRestart("muffle_cran_snapshot") }, skip = handle_skip, warning = handle_warning, message = handle_message, 30: error = handle_error, interrupt = handle_interrupt)doTryCatch(return(expr), name, parentenv, handler) 30: doTryCatch(return(expr), name, parentenv, handler)31: tryCatchOne(expr, names, parentenv, handlers[[1L]])31: tryCatchOne(expr, names, parentenv, handlers[[1L]])32: tryCatchList(expr, classes, parentenv, handlers)32: tryCatchList(expr, classes, parentenv, handlers)33: tryCatch(withCallingHandlers({33: eval(code, test_env) new_expectations <- the$test_expectations > starting_expectationstryCatch(withCallingHandlers({ if (snapshot_skipped) { eval(code, test_env) skip("On CRAN") new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { } skip("On CRAN") else if (!new_expectations && skip_on_empty) { } skip_empty() else if (!new_expectations && skip_on_empty) { } skip_empty()}, expectation = handle_expectation, packageNotFoundError = function(e) { } if (on_cran()) {}, expectation = handle_expectation, packageNotFoundError = function(e) { skip(paste0("{", e$package, "} is not installed.")) if (on_cran()) { } skip(paste0("{", e$package, "} is not installed."))}, snapshot_on_cran = function(cnd) { } snapshot_skipped <<- TRUE}, snapshot_on_cran = function(cnd) { invokeRestart("muffle_cran_snapshot") snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, }, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) error = handle_error, interrupt = handle_interrupt), error = handle_fatal)34: doWithOneRestart(return(expr), restart)34: doWithOneRestart(return(expr), restart)35: withOneRestart(expr, restarts[[1L]])35: withOneRestart(expr, restarts[[1L]])36: 36: withRestarts(tryCatch(withCallingHandlers({withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { if (snapshot_skipped) { skip("On CRAN") skip("On CRAN") } } else if (!new_expectations && skip_on_empty) { else if (!new_expectations && skip_on_empty) { skip_empty() skip_empty() } }}, expectation = handle_expectation, packageNotFoundError = function(e) {}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) } skip(paste0("{", e$package, "} is not installed."))}, snapshot_on_cran = function(cnd) { } snapshot_skipped <<- TRUE}, snapshot_on_cran = function(cnd) { 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), error = handle_fatal), }, skip = handle_skip, warning = handle_warning, message = handle_message, end_test = function() { error = handle_error, interrupt = handle_interrupt), error = handle_fatal), }) end_test = function() { })37: test_code(code = exprs, env = env, reporter = get_reporter() %||% 37: StopReporter$new())test_code(code = exprs, env = env, reporter = get_reporter() %||% 38: StopReporter$new())source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)38: source_file(path, env = env(env), desc = desc, shuffle = shuffle, 39: error_call = error_call)FUN(X[[i]], ...) 39: 40: FUN(X[[i]], ...) lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 40: error_call = error_call)lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)41: doTryCatch(return(expr), name, parentenv, handler)41: doTryCatch(return(expr), name, parentenv, handler)42: tryCatchOne(expr, names, parentenv, handlers[[1L]])42: tryCatchOne(expr, names, parentenv, handlers[[1L]])43: tryCatchList(expr, classes, parentenv, handlers) 43: 44: tryCatchList(expr, classes, parentenv, handlers)tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n")44: NULLtryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n")}) NULL })45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 45: env = env, desc = desc, shuffle = shuffle, error_call = error_call))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, 46: test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, test_files_serial(test_dir = test_dir, test_package = test_package, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 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, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call) error_call = error_call) 47: 47: test_files(test_dir = path, test_paths = test_paths, test_package = package, test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, 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) 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: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") ..., 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 ... 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, Traceback: slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, 1: unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) sampling_weights_type = swt_type) 2: 3: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, wls_v = wls_v, nacov = nacov) slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], 4: sampling_weights_type = swt_type)lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, 3: sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) wls_v = wls_v, nacov = nacov) 5: 4: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, 6: ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)eval(sc, parent.frame()) 5: 7: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, eval(sc, parent.frame()) std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") 8: 6: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, eval(sc, parent.frame()) std.lv = TRUE, warn = FALSE) 7: 9: eval(sc, parent.frame())doTryCatch(return(expr), name, parentenv, handler) 8: 10: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, tryCatchOne(expr, names, parentenv, handlers[[1L]]) std.lv = TRUE, warn = FALSE) 11: tryCatchList(expr, classes, parentenv, handlers) 9: doTryCatch(return(expr), name, parentenv, handler)12: tryCatch(expr, error = function(e) {10: call <- conditionCall(e)tryCatchOne(expr, names, parentenv, handlers[[1L]]) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) 11: call <- sys.call(-4L)tryCatchList(expr, classes, parentenv, handlers) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ")12: LONG <- 75LtryCatch(expr, error = function(e) { sm <- strsplit(conditionMessage(e), "\n")[[1L]] call <- conditionCall(e) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (!is.null(call)) { if (is.na(w)) if (identical(call[[1L]], quote(doTryCatch))) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], call <- sys.call(-4L) type = "b") dcall <- deparse(call, nlines = 1L) if (w > LONG) prefix <- paste("Error in", dcall, ": ") prefix <- paste0(prefix, "\n ") LONG <- 75L } sm <- strsplit(conditionMessage(e), "\n")[[1L]] else prefix <- "Error : " w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") msg <- paste0(prefix, conditionMessage(e), "\n") if (is.na(w)) .Internal(seterrmessage(msg[1L])) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (!silent && isTRUE(getOption("show.error.messages"))) { if (w > LONG) cat(msg, file = outFile) prefix <- paste0(prefix, "\n ") .Internal(printDeferredWarnings()) } } else prefix <- "Error : " invisible(structure(msg, class = "try-error", condition = e)) msg <- paste0(prefix, conditionMessage(e), "\n")}) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {13: cat(msg, file = outFile)try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, .Internal(printDeferredWarnings()) std.lv = TRUE, warn = FALSE), silent = TRUE) } invisible(structure(msg, class = "try-error", condition = e))14: })generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf)13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 15: std.lv = TRUE, warn = FALSE), silent = TRUE)FUN(X[[i]], ...) 16: 14: lapply(X = S, FUN = FUN, ...)generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf)17: doTryCatch(return(expr), name, parentenv, handler)15: 18: FUN(X[[i]], ...)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 16: 19: lapply(X = S, FUN = FUN, ...)tryCatchList(expr, classes, parentenv, handlers) 17: 20: doTryCatch(return(expr), name, parentenv, handler)tryCatch(expr, error = function(e) { call <- conditionCall(e)18: if (!is.null(call)) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)19: dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ")tryCatchList(expr, classes, parentenv, handlers) LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]]20: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")tryCatch(expr, error = function(e) { if (is.na(w)) call <- conditionCall(e) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], if (!is.null(call)) { type = "b") if (identical(call[[1L]], quote(doTryCatch))) if (w > LONG) call <- sys.call(-4L) prefix <- paste0(prefix, "\n ") dcall <- deparse(call, nlines = 1L) } prefix <- paste("Error in", dcall, ": ") else prefix <- "Error : " LONG <- 75L msg <- paste0(prefix, conditionMessage(e), "\n") sm <- strsplit(conditionMessage(e), "\n")[[1L]] .Internal(seterrmessage(msg[1L])) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (!silent && isTRUE(getOption("show.error.messages"))) { if (is.na(w)) cat(msg, file = outFile) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], .Internal(printDeferredWarnings()) type = "b") } if (w > LONG) invisible(structure(msg, class = "try-error", condition = e)) prefix <- paste0(prefix, "\n ")}) } else prefix <- "Error : "21: msg <- paste0(prefix, conditionMessage(e), "\n")try(lapply(X = S, FUN = FUN, ...), silent = TRUE) .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {22: cat(msg, file = outFile)sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) .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: parallel::mclapply(1:rep, function(r) {22: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) free1 = free1, free2 = free2, s = s, k = k, nf = nf)}, mc.cores = cores) 23: 26: FUN(X[[i]], ...)gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", "F5"), merge.mod = TRUE)24: lapply(seq_len(cores), inner.do)27: eval(code, test_env) 25: 28: parallel::mclapply(1:rep, function(r) {eval(code, test_env) generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf)29: }, mc.cores = cores)withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations26: if (snapshot_skipped) {gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", skip("On CRAN") "F5"), merge.mod = TRUE) } else if (!new_expectations && skip_on_empty) {27: skip_empty()eval(code, test_env) } }, expectation = handle_expectation, packageNotFoundError = function(e) {28: if (on_cran()) {eval(code, test_env) skip(paste0("{", e$package, "} is not installed.")) }29: }, snapshot_on_cran = function(cnd) {withCallingHandlers({ snapshot_skipped <<- TRUE eval(code, test_env) invokeRestart("muffle_cran_snapshot") new_expectations <- the$test_expectations > starting_expectations}, skip = handle_skip, warning = handle_warning, message = handle_message, if (snapshot_skipped) { skip("On CRAN") error = handle_error, interrupt = handle_interrupt) } else if (!new_expectations && skip_on_empty) {30: skip_empty()doTryCatch(return(expr), name, parentenv, handler) } }, expectation = handle_expectation, packageNotFoundError = function(e) {31: if (on_cran()) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip(paste0("{", e$package, "} is not installed.")) }32: }, snapshot_on_cran = function(cnd) {tryCatchList(expr, classes, parentenv, handlers) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")33: }, skip = handle_skip, warning = handle_warning, message = handle_message, tryCatch(withCallingHandlers({ error = handle_error, interrupt = handle_interrupt) eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations30: doTryCatch(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) { 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), error = handle_fatal) skip_empty() }34: }, expectation = handle_expectation, packageNotFoundError = function(e) {doWithOneRestart(return(expr), restart) if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))35: }withOneRestart(expr, restarts[[1L]])}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE36: invokeRestart("muffle_cran_snapshot")withRestarts(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) {34: skip("On CRAN")doWithOneRestart(return(expr), restart) } else if (!new_expectations && skip_on_empty) {35: skip_empty()withOneRestart(expr, restarts[[1L]]) } }, expectation = handle_expectation, packageNotFoundError = function(e) {36: 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") }}, skip = handle_skip, warning = handle_warning, message = handle_message, else if (!new_expectations && skip_on_empty) { error = handle_error, interrupt = handle_interrupt), error = handle_fatal), skip_empty() end_test = function() { } })}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed."))37: }test_code(code = exprs, env = env, reporter = get_reporter() %||% }, snapshot_on_cran = function(cnd) { StopReporter$new()) snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")38: }, skip = handle_skip, warning = handle_warning, message = handle_message, source_file(path, env = env(env), desc = desc, shuffle = shuffle, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), error_call = error_call) end_test = function() { })39: FUN(X[[i]], ...) 37: 40: test_code(code = exprs, env = env, reporter = get_reporter() %||% lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, StopReporter$new()) error_call = error_call) 38: 41: source_file(path, env = env(env), desc = desc, shuffle = shuffle, doTryCatch(return(expr), name, parentenv, handler) 42: error_call = error_call)tryCatchOne(expr, names, parentenv, handlers[[1L]]) 39: 43: tryCatchList(expr, classes, parentenv, handlers) FUN(X[[i]], ...)44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n")40: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, NULL error_call = error_call)}) 41: 45: 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))42: tryCatchOne(expr, names, parentenv, handlers[[1L]])46: test_files_serial(test_dir = test_dir, test_package = test_package, 43: test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, tryCatchList(expr, classes, parentenv, handlers) desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)44: 47: tryCatch(code, testthat_abort_reporter = function(cnd) {test_files(test_dir = path, test_paths = test_paths, test_package = package, cat(conditionMessage(cnd), "\n") reporter = reporter, load_helpers = load_helpers, env = env, NULL}) stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 48: env = env, desc = desc, shuffle = shuffle, error_call = error_call)) test_dir("testthat", package = package, reporter = reporter, 46: ..., load_package = "installed")test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, 49: env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, test_check("FCO") desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)An irrecoverable exception occurred. R is aborting now ... 47: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle) 48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed") 49: test_check("FCO") An irrecoverable exception occurred. R is aborting now ... Saving _problems/test-recommend_dv-43.R Saving _problems/test-recommend_dv-51.R Saving _problems/test-recommend_dv-59.R Saving _problems/test-recommend_dv-68.R [ FAIL 9 | WARN 8 | SKIP 0 | PASS 65 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-recommend.R:29:13'): Are the settings for purpose and focus following the recommendations by Mai et al.? #1 ── <subscriptOutOfBoundsError/error/condition> Error in `fits.nna[[1]]`: subscript out of bounds Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-recommend.R:29:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend(...) 4. ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index)) 5. │ └─base::withCallingHandlers(...) 6. └─base::lapply(ap, flex_co, fits = fits, index = index) 7. └─FCO (local) FUN(X[[i]], ...) 8. └─index %in% names(fits.nna[[1]]) ── Error ('test-recommend.R:51:13'): Are the settings for purpose and focus following the recommendations by Mai et al.? #3 ── <subscriptOutOfBoundsError/error/condition> Error in `fits.nna[[1]]`: subscript out of bounds Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-recommend.R:51:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend(...) 4. ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index)) 5. │ └─base::withCallingHandlers(...) 6. └─base::lapply(ap, flex_co, fits = fits, index = index) 7. └─FCO (local) FUN(X[[i]], ...) 8. └─index %in% names(fits.nna[[1]]) ── Error ('test-recommend.R:62:13'): Are the settings for purpose and focus following the recommendations by Mai et al.? #4 ── <subscriptOutOfBoundsError/error/condition> Error in `fits.nna[[1]]`: subscript out of bounds Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-recommend.R:62:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend(...) 4. ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index)) 5. │ └─base::withCallingHandlers(...) 6. └─base::lapply(ap, flex_co, fits = fits, index = index) 7. └─FCO (local) FUN(X[[i]], ...) 8. └─index %in% names(fits.nna[[1]]) ── Error ('test-recommend.R:86:13'): Is the result rounded properly? ─────────── <subscriptOutOfBoundsError/error/condition> Error in `fits.nna[[1]]`: subscript out of bounds Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-recommend.R:86:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend(...) 4. ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index)) 5. │ └─base::withCallingHandlers(...) 6. └─base::lapply(ap, flex_co, fits = fits, index = index) 7. └─FCO (local) FUN(X[[i]], ...) 8. └─index %in% names(fits.nna[[1]]) ── Error ('test-recommend.R:104:13'): Are the indices properly used when override is TRUE? ── <subscriptOutOfBoundsError/error/condition> Error in `fits.nna[[1]]`: subscript out of bounds Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-recommend.R:104:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend(...) 4. ├─base::suppressWarnings(lapply(ap, flex_co, fits = fits, index = index)) 5. │ └─base::withCallingHandlers(...) 6. └─base::lapply(ap, flex_co, fits = fits, index = index) 7. └─FCO (local) FUN(X[[i]], ...) 8. └─index %in% names(fits.nna[[1]]) ── Error ('test-recommend_dv.R:40:13'): Are multiple fit indices supported? ──── Error in `recommend_dv(fits = fits.dv.merge, index = c("CFI", "SRMR", "GFI"))`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co. Backtrace: ▆ 1. ├─base::suppressWarnings(...) at test-recommend_dv.R:40:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend_dv(...) ── Error ('test-recommend_dv.R:49:13'): Is the proper dv technique used? merging? ── Error in `recommend_dv(fits = fits.dv.merge, )`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co. Backtrace: ▆ 1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.merge, )) at test-recommend_dv.R:49:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend_dv(fits = fits.dv.merge, ) ── Error ('test-recommend_dv.R:57:13'): Is the proper dv technique used? constraining? ── Error in `recommend_dv(fits = fits.dv.con, )`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co. Backtrace: ▆ 1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.con, )) at test-recommend_dv.R:57:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend_dv(fits = fits.dv.con, ) ── Error ('test-recommend_dv.R:65:13'): Is the result rounded properly? ──────── Error in `recommend_dv(fits = fits.dv.con, digits = 5)`: Only dual model fit indices are supported so far for this function. Please revise or use flex_co. Backtrace: ▆ 1. ├─base::suppressWarnings(recommend_dv(fits = fits.dv.con, digits = 5)) at test-recommend_dv.R:65:13 2. │ └─base::withCallingHandlers(...) 3. └─FCO::recommend_dv(fits = fits.dv.con, digits = 5) [ FAIL 9 | WARN 8 | SKIP 0 | PASS 65 ] Error: ! Test failures. Execution halted Flavor: r-oldrel-macos-arm64