Last updated on 2026-10-14 10:51:44 CEST.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 2.0.2 | 6.91 | 229.74 | 236.65 | OK | |
| r-devel-linux-x86_64-debian-gcc | 2.0.2 | 4.20 | 155.88 | 160.08 | OK | |
| r-devel-linux-x86_64-fedora-clang | 2.0.2 | 5.00 | 171.86 | 176.86 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 2.0.2 | 156.24 | OK | |||
| r-devel-windows-x86_64 | 2.0.2 | 10.00 | 199.00 | 209.00 | OK | |
| r-patched-linux-x86_64 | 2.0.2 | 5.87 | 210.54 | 216.41 | OK | |
| r-release-linux-x86_64 | 2.0.2 | 6.14 | 210.42 | 216.56 | 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 | 67.00 | 69.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 | 233.00 | 244.00 | OK |
Version: 2.0.2
Check: tests
Result: ERROR
Running ‘testthat.R’ [51s/28s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(FCO)
>
> test_check("FCO")
This is lavaan 0.7-3
lavaan is FREE software! Please report any bugs.
Constraining is selected as the discriminant validity testing option given the provided arguments.
Constraining is selected as the discriminant validity testing option given the provided arguments.
Constraining is selected as the discriminant validity testing option given the provided arguments.
Merging is selected as the discriminant validity testing option given the provided arguments.
Merging is selected as the discriminant validity testing option given the provided arguments.
Constraining is selected as the discriminant validity testing option given the provided arguments.
*** caught segfault ***
address 0x110, cause 'invalid permissions'
Traceback:
1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)
2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type)
3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov)
4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)
5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")
6: eval(sc, parent.frame())
7: eval(sc, parent.frame())
8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE)
9: doTryCatch(return(expr), name, parentenv, handler)
10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
11: tryCatchList(expr, classes, parentenv, handlers)
12: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE)
14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)
15: FUN(X[[i]], ...)
16: lapply(X = S, FUN = FUN, ...)
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
19: tryCatchList(expr, classes, parentenv, handlers)
20: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
23: FUN(X[[i]], ...)
24: lapply(seq_len(cores), inner.do)
25: parallel::mclapply(1:rep, function(r) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)
*** caught segfault ***
}, mc.cores = cores)address 0x110, cause 'invalid permissions'
26: gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE)
27: eval(code, test_env)
28: eval(code, test_env)
29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
34: doWithOneRestart(return(expr), restart)
35: withOneRestart(expr, restarts[[1L]])
36: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
37: test_code(code, parent.frame())
38: test_that("Is kurtosis and skewness unequal to 1 when assume.mvn is FALSE?", { out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE) expect_gt(FCO:::mardia(out$x)[1], 1) expect_gt(FCO:::mardia(out$x)[1], 1) })
39: eval(code, test_env)
40: eval(code, test_env)
41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
42: doTryCatch(return(expr), name, parentenv, handler)
43: tryCatchOne(expr, names, parentenv, handlers[[1L]])
44: tryCatchList(expr, classes, parentenv, handlers)
45: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
46: doWithOneRestart(return(expr), restart)
47: withOneRestart(expr, restarts[[1L]])
48: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) {
Traceback:
snapshot_skipped <<- TRUE 1: invokeRestart("muffle_cran_snapshot")lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)}, skip = handle_skip, warning = handle_warning, message = handle_message,
error = handle_error, interrupt = handle_interrupt), error = handle_fatal), 2: end_test = function() {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]],
49: sampling_weights_type = swt_type)test_code(code = exprs, env = env, reporter = get_reporter() %||%
StopReporter$new()) 3:
lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, 50: wls_v = wls_v, nacov = nacov)source_file(path, env = env(env), desc = desc, shuffle = shuffle,
error_call = error_call) 4:
lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, 51: FUN(X[[i]], ...) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs,
ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)52:
lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 5: error_call = error_call)lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,
std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")53:
doTryCatch(return(expr), name, parentenv, handler) 6:
eval(sc, parent.frame())54:
tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7:
eval(sc, parent.frame())55:
tryCatchList(expr, classes, parentenv, handlers) 8:
lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 56: std.lv = TRUE, warn = FALSE)tryCatch(code, testthat_abort_reporter = function(cnd) {
cat(conditionMessage(cnd), "\n") 9: NULLdoTryCatch(return(expr), name, parentenv, handler)})
57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, 10: env = env, desc = desc, shuffle = shuffle, error_call = error_call))tryCatchOne(expr, names, parentenv, handlers[[1L]])
58: test_files_serial(test_dir = test_dir, test_package = test_package, 11: test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, tryCatchList(expr, classes, parentenv, handlers) env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle,
error_call = error_call)12: tryCatch(expr, error = function(e) {
call <- conditionCall(e)59: if (!is.null(call)) {test_files(test_dir = path, test_paths = test_paths, test_package = package, if (identical(call[[1L]], quote(doTryCatch))) reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, call <- sys.call(-4L) load_package = load_package, parallel = parallel, shuffle = shuffle) dcall <- deparse(call, nlines = 1L)
prefix <- paste("Error in", dcall, ": ")60: LONG <- 75Ltest_dir("testthat", package = package, reporter = reporter, sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) ..., load_package = "installed") w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
type = "b")61: if (w > LONG) test_check("FCO") prefix <- paste0(prefix, "\n ")
}An irrecoverable exception occurred. R is aborting now ...
else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE)
14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)
15: FUN(X[[i]], ...)
16: lapply(X = S, FUN = FUN, ...)
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
19: tryCatchList(expr, classes, parentenv, handlers)
20: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
23: FUN(X[[i]], ...)
24: lapply(seq_len(cores), inner.do)
25: parallel::mclapply(1:rep, function(r) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
26: gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE)
27: eval(code, test_env)
28: eval(code, test_env)
29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
34: doWithOneRestart(return(expr), restart)
35: withOneRestart(expr, restarts[[1L]])
36: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
37: test_code(code, parent.frame())
38: test_that("Is kurtosis and skewness unequal to 1 when assume.mvn is FALSE?", { out <- gen_fit(mod1 = mod, x = bb1992, rep = 10, assume.mvn = FALSE) expect_gt(FCO:::mardia(out$x)[1], 1) expect_gt(FCO:::mardia(out$x)[1], 1) })
39: eval(code, test_env)
40: eval(code, test_env)
41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
42: doTryCatch(return(expr), name, parentenv, handler)
43: tryCatchOne(expr, names, parentenv, handlers[[1L]])
44: tryCatchList(expr, classes, parentenv, handlers)
45: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
46: doWithOneRestart(return(expr), restart)
47: withOneRestart(expr, restarts[[1L]])
48: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
51: FUN(X[[i]], ...)
52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
53: doTryCatch(return(expr), name, parentenv, handler)
54: tryCatchOne(expr, names, parentenv, handlers[[1L]])
55: tryCatchList(expr, classes, parentenv, handlers)
56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
58: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
59: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
61: test_check("FCO")
An irrecoverable exception occurred. R is aborting now ...
*** caught segfault ***
address 0x110, cause 'invalid permissions'
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, parent.frame())
38: test_that("Is the seed set properly?", { out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) expect_equal(out1$seed, out2$seed)})
39: eval(code, test_env)
40: eval(code, test_env)
41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
42: doTryCatch(return(expr), name, parentenv, handler)
43: tryCatchOne(expr, names, parentenv, handlers[[1L]])
44: tryCatchList(expr, classes, parentenv, handlers)
45: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
46: doWithOneRestart(return(expr), restart)
47: withOneRestart(expr, restarts[[1L]])
48: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
51: FUN(X[[i]], ...)
52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
53: doTryCatch(return(expr), name, parentenv, handler)
54: tryCatchOne(expr, names, parentenv, handlers[[1L]])
55: tryCatchList(expr, classes, parentenv, handlers)
56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
58: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
59: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
61: test_check("FCO")
An irrecoverable exception occurred. R is aborting now ...
*** caught segfault ***
address 0x110, cause 'invalid permissions'
Traceback:
1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)
2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type)
3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov)
4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)
5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")
6: eval(sc, parent.frame())
7: eval(sc, parent.frame())
8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE)
9: doTryCatch(return(expr), name, parentenv, handler)
10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
11: tryCatchList(expr, classes, parentenv, handlers)
12: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE)
14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)
15: FUN(X[[i]], ...)
16: lapply(X = S, FUN = FUN, ...)
17: doTryCatch(return(expr), name, parentenv, handler)
18: tryCatchOne(expr, names, parentenv, handlers[[1L]])
19: tryCatchList(expr, classes, parentenv, handlers)
20: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
21: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)
22: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
23: FUN(X[[i]], ...)
24: lapply(seq_len(cores), inner.do)
25: parallel::mclapply(1:rep, function(r) { generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, free1 = free, s = s, k = k, nf = nf)}, mc.cores = cores)
26: gen_fit(mod1 = mod, x = bb1992, rep = 10)
27: eval(code, test_env)
28: eval(code, test_env)
29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
34: doWithOneRestart(return(expr), restart)
35: withOneRestart(expr, restarts[[1L]])
36: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
37: test_code(code, parent.frame())
38: test_that("Is the seed set properly?", { out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) expect_equal(out1$seed, out2$seed)})
39: eval(code, test_env)
40: eval(code, test_env)
41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
42: doTryCatch(return(expr), name, parentenv, handler)
43: tryCatchOne(expr, names, parentenv, handlers[[1L]])
44: tryCatchList(expr, classes, parentenv, handlers)
45: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
46: doWithOneRestart(return(expr), restart)
47: withOneRestart(expr, restarts[[1L]])
48: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
51: FUN(X[[i]], ...)
52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
53: doTryCatch(return(expr), name, parentenv, handler)
54: tryCatchOne(expr, names, parentenv, handlers[[1L]])
55: tryCatchList(expr, classes, parentenv, handlers)
56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
58: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
59: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
61: test_check("FCO")
An irrecoverable exception occurred. R is aborting now ...
*** caught segfault ***
address 0x110, cause 'invalid permissions'
*** 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, seed = 1111)
27: eval(code, test_env)
28: eval(code, test_env)
29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations
Traceback:
if (snapshot_skipped) { 1: skip("On CRAN")lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) }
else if (!new_expectations && skip_on_empty) { 2: skip_empty()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, }, expectation = handle_expectation, packageNotFoundError = function(e) { slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, if (on_cran()) { unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], skip(paste0("{", e$package, "} is not installed.")) sampling_weights_type = swt_type) }
}, snapshot_on_cran = function(cnd) { 3: snapshot_skipped <<- TRUElav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, invokeRestart("muffle_cran_snapshot") wls_v = wls_v, nacov = nacov)}, skip = handle_skip, warning = handle_warning, message = handle_message,
error = handle_error, interrupt = handle_interrupt) 4:
lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, 30: lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, doTryCatch(return(expr), name, parentenv, handler) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs,
ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)31:
tryCatchOne(expr, names, parentenv, handlers[[1L]]) 5:
lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, 32: std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")tryCatchList(expr, classes, parentenv, handlers)
6: 33: eval(sc, parent.frame())tryCatch(withCallingHandlers({
eval(code, test_env) 7: new_expectations <- the$test_expectations > starting_expectationseval(sc, parent.frame())
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: withOneRestart(expr, restarts[[1L]]) dcall <- deparse(call, nlines = 1L)
prefix <- paste("Error in", dcall, ": ")36: LONG <- 75LwithRestarts(tryCatch(withCallingHandlers({ sm <- strsplit(conditionMessage(e), "\n")[[1L]] eval(code, test_env) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") new_expectations <- the$test_expectations > starting_expectations if (is.na(w)) if (snapshot_skipped) { w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], skip("On CRAN") type = "b") } if (w > LONG) else if (!new_expectations && skip_on_empty) { prefix <- paste0(prefix, "\n ") skip_empty() } } else prefix <- "Error : "}, expectation = handle_expectation, packageNotFoundError = function(e) { msg <- paste0(prefix, conditionMessage(e), "\n") if (on_cran()) { .Internal(seterrmessage(msg[1L])) skip(paste0("{", e$package, "} is not installed.")) if (!silent && isTRUE(getOption("show.error.messages"))) { } cat(msg, file = outFile)}, snapshot_on_cran = function(cnd) { .Internal(printDeferredWarnings()) snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot") invisible(structure(msg, class = "try-error", condition = e))}, skip = handle_skip, warning = handle_warning, message = handle_message, }) error = handle_error, interrupt = handle_interrupt), error = handle_fatal),
end_test = function() {13: })try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE)
37: 14: test_code(code, parent.frame())generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,
free1 = free, s = s, k = k, nf = nf)38: test_that("Is the seed set properly?", {
out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10)15: out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)FUN(X[[i]], ...) expect_equal(out1$seed, out2$seed)
})16:
lapply(X = S, FUN = FUN, ...)39:
eval(code, test_env)17:
doTryCatch(return(expr), name, parentenv, handler)40:
eval(code, test_env)18:
tryCatchOne(expr, names, parentenv, handlers[[1L]])41:
withCallingHandlers({19: eval(code, test_env)tryCatchList(expr, classes, parentenv, handlers) new_expectations <- the$test_expectations > starting_expectations
if (snapshot_skipped) {20: skip("On CRAN")tryCatch(expr, error = function(e) { } call <- conditionCall(e) else if (!new_expectations && skip_on_empty) { if (!is.null(call)) { skip_empty() if (identical(call[[1L]], quote(doTryCatch))) } call <- sys.call(-4L)}, expectation = handle_expectation, packageNotFoundError = function(e) { dcall <- deparse(call, nlines = 1L) if (on_cran()) { prefix <- paste("Error in", dcall, ": ") skip(paste0("{", e$package, "} is not installed.")) LONG <- 75L } sm <- strsplit(conditionMessage(e), "\n")[[1L]]}, snapshot_on_cran = function(cnd) { w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") snapshot_skipped <<- TRUE if (is.na(w)) invokeRestart("muffle_cran_snapshot") w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], }, skip = handle_skip, warning = handle_warning, message = handle_message, type = "b") error = handle_error, interrupt = handle_interrupt) if (w > LONG)
prefix <- paste0(prefix, "\n ")42: }doTryCatch(return(expr), name, parentenv, handler) else prefix <- "Error : "
msg <- paste0(prefix, conditionMessage(e), "\n")43: .Internal(seterrmessage(msg[1L]))tryCatchOne(expr, names, parentenv, handlers[[1L]]) if (!silent && isTRUE(getOption("show.error.messages"))) {
cat(msg, file = outFile)44: .Internal(printDeferredWarnings())tryCatchList(expr, classes, parentenv, handlers) }
invisible(structure(msg, class = "try-error", condition = e))45: })tryCatch(withCallingHandlers({
eval(code, test_env)21: new_expectations <- the$test_expectations > starting_expectationstry(lapply(X = S, FUN = FUN, ...), silent = TRUE) if (snapshot_skipped) {
skip("On CRAN")22: }sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE)) else if (!new_expectations && skip_on_empty) {
skip_empty()23: }FUN(X[[i]], ...)}, expectation = handle_expectation, packageNotFoundError = function(e) {
if (on_cran()) {24: skip(paste0("{", e$package, "} is not installed."))lapply(seq_len(cores), inner.do) }}, snapshot_on_cran = function(cnd) {
snapshot_skipped <<- TRUE25: invokeRestart("muffle_cran_snapshot")parallel::mclapply(1:rep, function(r) {}, skip = handle_skip, warning = handle_warning, message = handle_message, generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, error = handle_error, interrupt = handle_interrupt), error = handle_fatal) free1 = free, s = s, k = k, nf = nf)
}, mc.cores = cores)46:
doWithOneRestart(return(expr), restart)26:
gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111)47: withOneRestart(expr, restarts[[1L]])
27: 48: eval(code, test_env)withRestarts(tryCatch(withCallingHandlers({
eval(code, test_env)28: new_expectations <- the$test_expectations > starting_expectationseval(code, test_env) if (snapshot_skipped) {
skip("On CRAN")29: }withCallingHandlers({ else if (!new_expectations && skip_on_empty) { eval(code, test_env) skip_empty() new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { } skip("On CRAN")}, expectation = handle_expectation, packageNotFoundError = function(e) { } if (on_cran()) { else if (!new_expectations && skip_on_empty) { skip(paste0("{", e$package, "} is not installed.")) skip_empty() } }}, snapshot_on_cran = function(cnd) {}, expectation = handle_expectation, packageNotFoundError = function(e) { snapshot_skipped <<- TRUE if (on_cran()) { invokeRestart("muffle_cran_snapshot") skip(paste0("{", e$package, "} is not installed."))}, skip = handle_skip, warning = handle_warning, message = handle_message, } error = handle_error, interrupt = handle_interrupt), error = handle_fatal), }, snapshot_on_cran = function(cnd) { end_test = function() { }) snapshot_skipped <<- TRUE
invokeRestart("muffle_cran_snapshot")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) StopReporter$new())
30: 50: doTryCatch(return(expr), name, parentenv, handler)source_file(path, env = env(env), desc = desc, shuffle = shuffle,
error_call = error_call)31:
tryCatchOne(expr, names, parentenv, handlers[[1L]])51:
FUN(X[[i]], ...)32:
tryCatchList(expr, classes, parentenv, handlers)52:
lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 33: error_call = error_call)tryCatch(withCallingHandlers({
eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations53: if (snapshot_skipped) {doTryCatch(return(expr), name, parentenv, handler) skip("On CRAN")
}54: else if (!new_expectations && skip_on_empty) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip_empty()
}55: }, expectation = handle_expectation, packageNotFoundError = function(e) {tryCatchList(expr, classes, parentenv, handlers) if (on_cran()) {
skip(paste0("{", e$package, "} is not installed."))56: }tryCatch(code, testthat_abort_reporter = function(cnd) {}, snapshot_on_cran = function(cnd) { cat(conditionMessage(cnd), "\n") snapshot_skipped <<- TRUE NULL invokeRestart("muffle_cran_snapshot")})}, skip = handle_skip, warning = handle_warning, message = handle_message,
error = handle_error, interrupt = handle_interrupt), error = handle_fatal)57:
with_reporter(reporters$multi, lapply(test_paths, test_one_file, 34: env = env, desc = desc, shuffle = shuffle, error_call = error_call))doWithOneRestart(return(expr), restart)
58: 35: test_files_serial(test_dir = test_dir, test_package = test_package, withOneRestart(expr, restarts[[1L]]) test_paths = test_paths, load_helpers = load_helpers, reporter = reporter,
env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, 36: desc = desc, load_package = load_package, shuffle = shuffle, withRestarts(tryCatch(withCallingHandlers({ error_call = error_call) eval(code, test_env)
new_expectations <- the$test_expectations > starting_expectations59: if (snapshot_skipped) {test_files(test_dir = path, test_paths = test_paths, test_package = package, skip("On CRAN") reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, } else if (!new_expectations && skip_on_empty) { load_package = load_package, parallel = parallel, shuffle = shuffle) skip_empty()
}60: }, expectation = handle_expectation, packageNotFoundError = function(e) {test_dir("testthat", package = package, reporter = reporter, if (on_cran()) { ..., load_package = "installed") skip(paste0("{", e$package, "} is not installed."))
}61: }, snapshot_on_cran = function(cnd) {test_check("FCO") snapshot_skipped <<- TRUE
invokeRestart("muffle_cran_snapshot")An irrecoverable exception occurred. R is aborting now ...
}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
37: test_code(code, parent.frame())
38: test_that("Is the seed set properly?", { out1 <- gen_fit(mod1 = mod, x = bb1992, rep = 10) out2 <- gen_fit(mod1 = mod, x = bb1992, rep = 10, seed = 1111) expect_equal(out1$seed, out2$seed)})
39: eval(code, test_env)
40: eval(code, test_env)
41: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
42: doTryCatch(return(expr), name, parentenv, handler)
43: tryCatchOne(expr, names, parentenv, handlers[[1L]])
44: tryCatchList(expr, classes, parentenv, handlers)
45: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
46: doWithOneRestart(return(expr), restart)
47: withOneRestart(expr, restarts[[1L]])
48: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
49: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
50: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
51: FUN(X[[i]], ...)
52: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
53: doTryCatch(return(expr), name, parentenv, handler)
54: tryCatchOne(expr, names, parentenv, handlers[[1L]])
55: tryCatchList(expr, classes, parentenv, handlers)
56: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
57: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
58: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
59: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
60: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
61: test_check("FCO")
An irrecoverable exception occurred. R is aborting now ...
*** caught segfault ***
address 0x110, cause 'invalid permissions'
*** 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:
Traceback:
lapply(seq_len(cores), inner.do) 1:
lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)25:
parallel::mclapply(1:rep, function(r) { 2: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, free1 = free, s = s, k = k, nf = nf) fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, }, mc.cores = cores) slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one,
unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], 26: sampling_weights_type = swt_type)gen_fit(mod1 = mod, x = bb1992, rep = 10)
3: 27: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, eval(code, test_env) wls_v = wls_v, nacov = nacov)
28: 4: eval(code, test_env)lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata,
lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, 29: withCallingHandlers({ sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, eval(code, test_env) ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) new_expectations <- the$test_expectations > starting_expectations
if (snapshot_skipped) { 5: skip("On CRAN")lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, } std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") else if (!new_expectations && skip_on_empty) {
skip_empty() 6: }eval(sc, parent.frame())}, expectation = handle_expectation, packageNotFoundError = function(e) {
if (on_cran()) { 7: skip(paste0("{", e$package, "} is not installed."))eval(sc, parent.frame()) }
}, snapshot_on_cran = function(cnd) { 8: snapshot_skipped <<- TRUElavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, invokeRestart("muffle_cran_snapshot") std.lv = TRUE, warn = FALSE)}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
9: 30: doTryCatch(return(expr), name, parentenv, handler)doTryCatch(return(expr), name, parentenv, handler)
10: 31: tryCatchOne(expr, names, parentenv, handlers[[1L]])tryCatchOne(expr, names, parentenv, handlers[[1L]])
11: 32: tryCatchList(expr, classes, parentenv, handlers)tryCatchList(expr, classes, parentenv, handlers)
12: 33: tryCatch(expr, error = function(e) {tryCatch(withCallingHandlers({ call <- conditionCall(e) eval(code, test_env) if (!is.null(call)) { new_expectations <- the$test_expectations > starting_expectations if (identical(call[[1L]], quote(doTryCatch))) if (snapshot_skipped) { call <- sys.call(-4L) skip("On CRAN") dcall <- deparse(call, nlines = 1L) } prefix <- paste("Error in", dcall, ": ") else if (!new_expectations && skip_on_empty) { LONG <- 75L skip_empty() sm <- strsplit(conditionMessage(e), "\n")[[1L]] }}, expectation = handle_expectation, packageNotFoundError = function(e) { w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (on_cran()) { if (is.na(w)) skip(paste0("{", e$package, "} is not installed.")) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], } type = "b")}, snapshot_on_cran = function(cnd) { if (w > LONG) snapshot_skipped <<- TRUE prefix <- paste0(prefix, "\n ") invokeRestart("muffle_cran_snapshot") }}, skip = handle_skip, warning = handle_warning, message = handle_message, else prefix <- "Error : " error = handle_error, interrupt = handle_interrupt), error = handle_fatal) msg <- paste0(prefix, conditionMessage(e), "\n")
.Internal(seterrmessage(msg[1L]))34: if (!silent && isTRUE(getOption("show.error.messages"))) {doWithOneRestart(return(expr), restart) cat(msg, file = outFile)
.Internal(printDeferredWarnings())35: }withOneRestart(expr, restarts[[1L]]) invisible(structure(msg, class = "try-error", condition = e))
})36:
withRestarts(tryCatch(withCallingHandlers({13: eval(code, test_env)try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, new_expectations <- the$test_expectations > starting_expectations std.lv = TRUE, warn = FALSE), silent = TRUE) if (snapshot_skipped) {
skip("On CRAN") }14: else if (!new_expectations && skip_on_empty) {generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, skip_empty() free1 = free, s = s, k = k, nf = nf) }}, expectation = handle_expectation, packageNotFoundError = function(e) {
if (on_cran()) {15: skip(paste0("{", e$package, "} is not installed."))FUN(X[[i]], ...) }
}, snapshot_on_cran = function(cnd) {16: snapshot_skipped <<- TRUElapply(X = S, FUN = FUN, ...) invokeRestart("muffle_cran_snapshot")
}, skip = handle_skip, warning = handle_warning, message = handle_message, 17: error = handle_error, interrupt = handle_interrupt), error = handle_fatal), doTryCatch(return(expr), name, parentenv, handler) end_test = function() {
})18:
tryCatchOne(expr, names, parentenv, handlers[[1L]])37:
test_code(code = exprs, env = env, reporter = get_reporter() %||% 19: StopReporter$new())tryCatchList(expr, classes, parentenv, handlers)
38: 20: source_file(path, env = env(env), desc = desc, shuffle = shuffle, tryCatch(expr, error = function(e) { error_call = error_call) call <- conditionCall(e)
if (!is.null(call)) {39: if (identical(call[[1L]], quote(doTryCatch))) FUN(X[[i]], ...) call <- sys.call(-4L)
dcall <- deparse(call, nlines = 1L)40: prefix <- paste("Error in", dcall, ": ")lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, LONG <- 75L error_call = error_call) sm <- strsplit(conditionMessage(e), "\n")[[1L]]
w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")41: if (is.na(w)) doTryCatch(return(expr), name, parentenv, handler) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
type = "b") if (w > LONG) 42: prefix <- paste0(prefix, "\n ")tryCatchOne(expr, names, parentenv, handlers[[1L]]) }
else prefix <- "Error : "43: msg <- paste0(prefix, conditionMessage(e), "\n")tryCatchList(expr, classes, parentenv, handlers) .Internal(seterrmessage(msg[1L]))
if (!silent && isTRUE(getOption("show.error.messages"))) {44: cat(msg, file = outFile)tryCatch(code, testthat_abort_reporter = function(cnd) { .Internal(printDeferredWarnings()) cat(conditionMessage(cnd), "\n") } NULL invisible(structure(msg, class = "try-error", condition = e))})})
45: 21: with_reporter(reporters$multi, lapply(test_paths, test_one_file, try(lapply(X = S, FUN = FUN, ...), silent = TRUE) env = env, desc = desc, shuffle = shuffle, error_call = error_call))
22:
sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))46:
test_files_serial(test_dir = test_dir, test_package = test_package, 23: test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, FUN(X[[i]], ...) 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)24:
lapply(seq_len(cores), inner.do)47:
test_files(test_dir = path, test_paths = test_paths, test_package = package, 25: reporter = reporter, load_helpers = load_helpers, env = env, parallel::mclapply(1:rep, function(r) { stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, load_package = load_package, parallel = parallel, shuffle = shuffle) free1 = free, s = s, k = k, nf = nf)
}, mc.cores = cores)48:
test_dir("testthat", package = package, reporter = reporter, 26: ..., load_package = "installed")gen_fit(mod1 = mod, x = bb1992, rep = 10)
49: 27: test_check("FCO")eval(code, test_env)
An irrecoverable exception occurred. R is aborting now ...
28: eval(code, test_env)
29: withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt)
30: doTryCatch(return(expr), name, parentenv, handler)
31: tryCatchOne(expr, names, parentenv, handlers[[1L]])
32: tryCatchList(expr, classes, parentenv, handlers)
33: tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal)
34: doWithOneRestart(return(expr), restart)
35: withOneRestart(expr, restarts[[1L]])
36: withRestarts(tryCatch(withCallingHandlers({ eval(code, test_env) new_expectations <- the$test_expectations > starting_expectations if (snapshot_skipped) { skip("On CRAN") } else if (!new_expectations && skip_on_empty) { skip_empty() }}, expectation = handle_expectation, packageNotFoundError = function(e) { if (on_cran()) { skip(paste0("{", e$package, "} is not installed.")) }}, snapshot_on_cran = function(cnd) { snapshot_skipped <<- TRUE invokeRestart("muffle_cran_snapshot")}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), end_test = function() { })
37: test_code(code = exprs, env = env, reporter = get_reporter() %||% StopReporter$new())
38: source_file(path, env = env(env), desc = desc, shuffle = shuffle, error_call = error_call)
39: FUN(X[[i]], ...)
40: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call)
41: doTryCatch(return(expr), name, parentenv, handler)
42: tryCatchOne(expr, names, parentenv, handlers[[1L]])
43: tryCatchList(expr, classes, parentenv, handlers)
44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
46: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
47: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
49: test_check("FCO")
An irrecoverable exception occurred. R is aborting now ...
*** caught segfault ***
address 0x110, cause 'invalid permissions'
*** caught segfault ***
address 0x110, cause 'invalid permissions'
Traceback:
1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)
2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type)
3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov)
4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)
5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")
6: eval(sc, parent.frame())
7: eval(sc, parent.frame())
8: lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE)
9: doTryCatch(return(expr), name, parentenv, handler)
10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
11: tryCatchList(expr, classes, parentenv, handlers)
12: tryCatch(expr, error = function(e) { call <- conditionCall(e) if (!is.null(call)) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") if (w > LONG) prefix <- paste0(prefix, "\n ") } else prefix <- "Error : " msg <- paste0(prefix, conditionMessage(e), "\n") .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) .Internal(printDeferredWarnings()) } invisible(structure(msg, class = "try-error", condition = e))})
13: try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, std.lv = TRUE, warn = FALSE), silent = TRUE)
14: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, free1 = free1, free2 = free2, s = s, k = k, nf = nf)
15: FUN(X[[i]], ...)
16: lapply(X = S, FUN = FUN, ...)
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,
Traceback:
1: error = handle_error, interrupt = handle_interrupt)
lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)30:
doTryCatch(return(expr), name, parentenv, handler)
2: 31: tryCatchOne(expr, names, parentenv, handlers[[1L]])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, 32: slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, tryCatchList(expr, classes, parentenv, handlers) unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]],
sampling_weights_type = swt_type)33:
tryCatch(withCallingHandlers({ 3: eval(code, test_env)lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, new_expectations <- the$test_expectations > starting_expectations wls_v = wls_v, nacov = nacov) if (snapshot_skipped) {
skip("On CRAN") 4: }lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, else if (!new_expectations && skip_on_empty) { lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, skip_empty() sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, } ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)}, expectation = handle_expectation, packageNotFoundError = function(e) {
if (on_cran()) { 5: skip(paste0("{", e$package, "} is not installed."))lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, } std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")}, snapshot_on_cran = function(cnd) {
snapshot_skipped <<- TRUE 6: invokeRestart("muffle_cran_snapshot")eval(sc, parent.frame())}, skip = handle_skip, warning = handle_warning, message = handle_message,
error = handle_error, interrupt = handle_interrupt), error = handle_fatal) 7:
eval(sc, parent.frame())34:
doWithOneRestart(return(expr), restart) 8:
lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 35: std.lv = TRUE, warn = FALSE)withOneRestart(expr, restarts[[1L]])
9: 36: doTryCatch(return(expr), name, parentenv, handler)
withRestarts(tryCatch(withCallingHandlers({10: eval(code, test_env)tryCatchOne(expr, names, parentenv, handlers[[1L]]) new_expectations <- the$test_expectations > starting_expectations
if (snapshot_skipped) {11: skip("On CRAN")tryCatchList(expr, classes, parentenv, handlers) }
else if (!new_expectations && skip_on_empty) {12: skip_empty()tryCatch(expr, error = function(e) { } call <- conditionCall(e)}, expectation = handle_expectation, packageNotFoundError = function(e) { if (!is.null(call)) { if (on_cran()) { if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L) skip(paste0("{", e$package, "} is not installed.")) dcall <- deparse(call, nlines = 1L) } prefix <- paste("Error in", dcall, ": ")}, snapshot_on_cran = function(cnd) { LONG <- 75L snapshot_skipped <<- TRUE sm <- strsplit(conditionMessage(e), "\n")[[1L]] invokeRestart("muffle_cran_snapshot") w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")}, skip = handle_skip, warning = handle_warning, message = handle_message, if (is.na(w)) error = handle_error, interrupt = handle_interrupt), error = handle_fatal), w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], end_test = function() { type = "b") if (w > LONG) }) prefix <- paste0(prefix, "\n ")
}37: else prefix <- "Error : "test_code(code = exprs, env = env, reporter = get_reporter() %||% msg <- paste0(prefix, conditionMessage(e), "\n") StopReporter$new()) .Internal(seterrmessage(msg[1L]))
38: if (!silent && isTRUE(getOption("show.error.messages"))) {source_file(path, env = env(env), desc = desc, shuffle = shuffle, cat(msg, file = outFile) error_call = error_call) .Internal(printDeferredWarnings())
}39: invisible(structure(msg, class = "try-error", condition = e))FUN(X[[i]], ...)})
40: 13: lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, error_call = error_call) std.lv = TRUE, warn = FALSE), silent = TRUE)
41: 14: doTryCatch(return(expr), name, parentenv, handler)generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1,
free1 = free1, free2 = free2, s = s, k = k, nf = nf)42:
tryCatchOne(expr, names, parentenv, handlers[[1L]])15:
FUN(X[[i]], ...)43:
tryCatchList(expr, classes, parentenv, handlers)16:
lapply(X = S, FUN = FUN, ...)44:
tryCatch(code, testthat_abort_reporter = function(cnd) {17: cat(conditionMessage(cnd), "\n") NULL})doTryCatch(return(expr), name, parentenv, handler)
18: 45: tryCatchOne(expr, names, parentenv, handlers[[1L]])with_reporter(reporters$multi, lapply(test_paths, test_one_file,
19: env = env, desc = desc, shuffle = shuffle, error_call = error_call))tryCatchList(expr, classes, parentenv, handlers)
46: 20: test_files_serial(test_dir = test_dir, test_package = test_package, tryCatch(expr, error = function(e) { test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, call <- conditionCall(e) env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, if (!is.null(call)) { desc = desc, load_package = load_package, shuffle = shuffle, if (identical(call[[1L]], quote(doTryCatch))) error_call = error_call) call <- sys.call(-4L)
dcall <- deparse(call, nlines = 1L)47: prefix <- paste("Error in", dcall, ": ")test_files(test_dir = path, test_paths = test_paths, test_package = package, LONG <- 75L reporter = reporter, load_helpers = load_helpers, env = env, sm <- strsplit(conditionMessage(e), "\n")[[1L]] stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") load_package = load_package, parallel = parallel, shuffle = shuffle) if (is.na(w))
w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b")48: if (w > LONG) test_dir("testthat", package = package, reporter = reporter, prefix <- paste0(prefix, "\n ") ..., load_package = "installed") }
else prefix <- "Error : "49: msg <- paste0(prefix, conditionMessage(e), "\n")test_check("FCO") .Internal(seterrmessage(msg[1L]))
if (!silent && isTRUE(getOption("show.error.messages"))) {An irrecoverable exception occurred. R is aborting now ...
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'
*** 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:
1: lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs,
ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) 2:
lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, 5: lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")
slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, 6: unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], eval(sc, parent.frame()) sampling_weights_type = swt_type)
7: 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, ": ") 3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, LONG <- 75L wls_v = wls_v, nacov = nacov) sm <- strsplit(conditionMessage(e), "\n")[[1L]]
4: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, if (is.na(w)) lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b") sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, if (w > LONG) ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) prefix <- paste0(prefix, "\n ")
5: }lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, else prefix <- "Error : " std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa") msg <- paste0(prefix, conditionMessage(e), "\n")
.Internal(seterrmessage(msg[1L])) 6: if (!silent && isTRUE(getOption("show.error.messages"))) {eval(sc, parent.frame()) cat(msg, file = outFile)
.Internal(printDeferredWarnings()) 7: eval(sc, parent.frame()) }
invisible(structure(msg, class = "try-error", condition = e)) 8: })lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,
std.lv = TRUE, warn = FALSE)13:
try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 9: std.lv = TRUE, warn = FALSE), silent = TRUE)doTryCatch(return(expr), name, parentenv, handler)
10: 14: tryCatchOne(expr, names, parentenv, handlers[[1L]])generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod,
11: free1 = free, s = s, k = k, nf = nf)tryCatchList(expr, classes, parentenv, handlers)
15: 12: FUN(X[[i]], ...)tryCatch(expr, error = function(e) {
call <- conditionCall(e) if (!is.null(call)) {16: if (identical(call[[1L]], quote(doTryCatch))) lapply(X = S, FUN = FUN, ...) call <- sys.call(-4L)
dcall <- deparse(call, nlines = 1L)17: 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")18: if (is.na(w)) tryCatchOne(expr, names, parentenv, handlers[[1L]]) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b")
if (w > LONG) 19: prefix <- paste0(prefix, "\n ")tryCatchList(expr, classes, parentenv, handlers) } else prefix <- "Error : "
msg <- paste0(prefix, conditionMessage(e), "\n")20: .Internal(seterrmessage(msg[1L]))tryCatch(expr, error = function(e) { if (!silent && isTRUE(getOption("show.error.messages"))) { cat(msg, file = outFile) call <- conditionCall(e) .Internal(printDeferredWarnings()) if (!is.null(call)) { } if (identical(call[[1L]], quote(doTryCatch))) invisible(structure(msg, class = "try-error", condition = e))}) call <- sys.call(-4L)
dcall <- deparse(call, nlines = 1L)13: prefix <- paste("Error in", dcall, ": ") LONG <- 75Ltry(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, sm <- strsplit(conditionMessage(e), "\n")[[1L]] w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w") std.lv = TRUE, warn = FALSE), silent = TRUE)
if (is.na(w)) 14: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, type = "b") free1 = free, s = s, k = k, nf = nf) if (w > LONG)
prefix <- paste0(prefix, "\n ")15: }FUN(X[[i]], ...) else prefix <- "Error : "
msg <- paste0(prefix, conditionMessage(e), "\n")16: .Internal(seterrmessage(msg[1L])) if (!silent && isTRUE(getOption("show.error.messages"))) {lapply(X = S, FUN = FUN, ...) cat(msg, file = outFile)
.Internal(printDeferredWarnings())17: } invisible(structure(msg, class = "try-error", condition = e))})
doTryCatch(return(expr), name, parentenv, handler)21:
try(lapply(X = S, FUN = FUN, ...), silent = TRUE)18:
tryCatchOne(expr, names, parentenv, handlers[[1L]])
22: 19: sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
tryCatchList(expr, classes, parentenv, handlers)
23: FUN(X[[i]], ...)20: tryCatch(expr, error = function(e) {
24: call <- conditionCall(e) if (!is.null(call)) {lapply(seq_len(cores), inner.do)
if (identical(call[[1L]], quote(doTryCatch))) call <- sys.call(-4L)25: parallel::mclapply(1:rep, function(r) { dcall <- deparse(call, nlines = 1L) prefix <- paste("Error in", dcall, ": ") LONG <- 75L generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod, sm <- strsplit(conditionMessage(e), "\n")[[1L]] free1 = free, s = s, k = k, nf = nf) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")}, mc.cores = cores) if (is.na(w))
26: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], type = "b")gen_fit(mod1 = mod, x = bb1992, rep = 10) if (w > LONG)
prefix <- paste0(prefix, "\n ")27: }eval(code, test_env) else prefix <- "Error : "
msg <- paste0(prefix, conditionMessage(e), "\n")28: .Internal(seterrmessage(msg[1L]))eval(code, test_env) if (!silent && isTRUE(getOption("show.error.messages"))) {
cat(msg, file = outFile)29: .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, 30: free1 = free, s = s, k = k, nf = nf)doTryCatch(return(expr), name, parentenv, handler)}, mc.cores = cores)
31: 26: tryCatchOne(expr, names, parentenv, handlers[[1L]])gen_fit(mod1 = mod, x = bb1992, rep = 10)
32: 27: tryCatchList(expr, classes, parentenv, handlers)eval(code, test_env)
33: 28: tryCatch(withCallingHandlers({eval(code, test_env) eval(code, test_env)
new_expectations <- the$test_expectations > starting_expectations29: if (snapshot_skipped) {withCallingHandlers({ skip("On CRAN") eval(code, test_env) 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")
}, skip = handle_skip, warning = handle_warning, message = handle_message, 34: doWithOneRestart(return(expr), restart) error = handle_error, interrupt = handle_interrupt)
35: 30: withOneRestart(expr, restarts[[1L]])doTryCatch(return(expr), name, parentenv, handler)
36:
withRestarts(tryCatch(withCallingHandlers({31: eval(code, test_env)tryCatchOne(expr, names, parentenv, handlers[[1L]]) new_expectations <- the$test_expectations > starting_expectations
if (snapshot_skipped) {32: skip("On CRAN")tryCatchList(expr, classes, parentenv, handlers) }
else if (!new_expectations && skip_on_empty) {33: skip_empty()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) { snapshot_skipped <<- TRUE skip_empty() invokeRestart("muffle_cran_snapshot") }}, skip = handle_skip, warning = handle_warning, message = handle_message, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), }, expectation = handle_expectation, packageNotFoundError = function(e) { end_test = function() { if (on_cran()) { }) skip(paste0("{", e$package, "} is not installed."))
}}, snapshot_on_cran = function(cnd) {37: snapshot_skipped <<- TRUEtest_code(code = exprs, env = env, reporter = get_reporter() %||% invokeRestart("muffle_cran_snapshot") StopReporter$new())}, skip = handle_skip, warning = handle_warning, message = handle_message,
error = handle_error, interrupt = handle_interrupt), error = handle_fatal)38:
source_file(path, env = env(env), desc = desc, shuffle = shuffle, 34: error_call = error_call)
doWithOneRestart(return(expr), restart)39:
FUN(X[[i]], ...)35:
withOneRestart(expr, restarts[[1L]])40:
lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 36: error_call = error_call)withRestarts(tryCatch(withCallingHandlers({
eval(code, test_env)41: new_expectations <- the$test_expectations > starting_expectationsdoTryCatch(return(expr), name, parentenv, handler) if (snapshot_skipped) {
skip("On CRAN")42: }tryCatchOne(expr, names, parentenv, handlers[[1L]]) else if (!new_expectations && skip_on_empty) {
skip_empty()43: }tryCatchList(expr, classes, parentenv, handlers)}, expectation = handle_expectation, packageNotFoundError = function(e) {
if (on_cran()) {44: skip(paste0("{", e$package, "} is not installed."))tryCatch(code, testthat_abort_reporter = function(cnd) { } cat(conditionMessage(cnd), "\n")}, snapshot_on_cran = function(cnd) { NULL snapshot_skipped <<- TRUE}) invokeRestart("muffle_cran_snapshot")
}, skip = handle_skip, warning = handle_warning, message = handle_message, 45: error = handle_error, interrupt = handle_interrupt), error = handle_fatal), with_reporter(reporters$multi, lapply(test_paths, test_one_file, end_test = function() { env = env, desc = desc, shuffle = shuffle, error_call = error_call)) })
46: 37: test_files_serial(test_dir = test_dir, test_package = test_package, test_code(code = exprs, env = env, reporter = get_reporter() %||% test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, StopReporter$new()) env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
desc = desc, load_package = load_package, shuffle = shuffle, 38: error_call = error_call)source_file(path, env = env(env), desc = desc, shuffle = shuffle,
error_call = error_call)47:
test_files(test_dir = path, test_paths = test_paths, test_package = package, 39: reporter = reporter, load_helpers = load_helpers, env = env, FUN(X[[i]], ...) stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning,
load_package = load_package, parallel = parallel, shuffle = shuffle)40:
lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 48: error_call = error_call)test_dir("testthat", package = package, reporter = reporter,
..., load_package = "installed")41:
doTryCatch(return(expr), name, parentenv, handler)49:
test_check("FCO")42:
tryCatchOne(expr, names, parentenv, handlers[[1L]])An irrecoverable exception occurred. R is aborting now ...
43: tryCatchList(expr, classes, parentenv, handlers)
44: tryCatch(code, testthat_abort_reporter = function(cnd) { cat(conditionMessage(cnd), "\n") NULL})
45: with_reporter(reporters$multi, lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, error_call = error_call))
46: test_files_serial(test_dir = test_dir, test_package = test_package, test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, desc = desc, load_package = load_package, shuffle = shuffle, error_call = error_call)
47: test_files(test_dir = path, test_paths = test_paths, test_package = package, reporter = reporter, load_helpers = load_helpers, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, load_package = load_package, parallel = parallel, shuffle = shuffle)
48: test_dir("testthat", package = package, reporter = reporter, ..., load_package = "installed")
49: test_check("FCO")
An irrecoverable exception occurred. R is aborting now ...
Constraining is selected as the discriminant validity testing option given the provided arguments.
*** caught segfault ***
address 0x110, cause 'invalid permissions'
*** caught segfault ***
address 0x110, cause 'invalid permissions'
Traceback:
1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)
2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]], sampling_weights_type = swt_type)
3: lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov)
4: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)
5: 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, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", "F5"), dv.cutoff = 0.9)
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."))
Traceback:
} 1: }, snapshot_on_cran = function(cnd) {lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) snapshot_skipped <<- TRUE
invokeRestart("muffle_cran_snapshot") 2: }, skip = handle_skip, warning = handle_warning, message = handle_message, lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, error = handle_error, interrupt = handle_interrupt), error = handle_fatal), fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, end_test = function() { 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)37:
test_code(code = exprs, env = env, reporter = get_reporter() %||% 3: StopReporter$new())lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions,
38: wls_v = wls_v, nacov = nacov)source_file(path, env = env(env), desc = desc, shuffle = shuffle,
error_call = error_call) 4:
lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, 39: lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, FUN(X[[i]], ...) sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs,
ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable)40:
lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 5: error_call = error_call)lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE,
std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")41:
doTryCatch(return(expr), name, parentenv, handler) 6:
eval(sc, parent.frame())42:
tryCatchOne(expr, names, parentenv, handlers[[1L]]) 7:
eval(sc, parent.frame())43:
tryCatchList(expr, classes, parentenv, handlers) 8:
lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 44: std.lv = TRUE, warn = FALSE)tryCatch(code, testthat_abort_reporter = function(cnd) {
cat(conditionMessage(cnd), "\n") 9: NULLdoTryCatch(return(expr), name, parentenv, handler)})
10: 45: tryCatchOne(expr, names, parentenv, handlers[[1L]])with_reporter(reporters$multi, lapply(test_paths, test_one_file,
env = env, desc = desc, shuffle = shuffle, error_call = error_call))11:
tryCatchList(expr, classes, parentenv, handlers)46:
test_files_serial(test_dir = test_dir, test_package = test_package, 12: test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, tryCatch(expr, error = function(e) { env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, call <- conditionCall(e) desc = desc, load_package = load_package, shuffle = shuffle, if (!is.null(call)) { error_call = error_call) if (identical(call[[1L]], quote(doTryCatch)))
call <- sys.call(-4L)47: dcall <- deparse(call, nlines = 1L)test_files(test_dir = path, test_paths = test_paths, test_package = package, prefix <- paste("Error in", dcall, ": ") reporter = reporter, load_helpers = load_helpers, env = env, LONG <- 75L stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, sm <- strsplit(conditionMessage(e), "\n")[[1L]] load_package = load_package, parallel = parallel, shuffle = shuffle) w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")
if (is.na(w)) 48: w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], test_dir("testthat", package = package, reporter = reporter, type = "b") ..., load_package = "installed") if (w > LONG)
prefix <- paste0(prefix, "\n ")49: }test_check("FCO") else prefix <- "Error : "
msg <- paste0(prefix, conditionMessage(e), "\n")An irrecoverable exception occurred. R is aborting now ...
.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, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", "F5"), dv.cutoff = 0.9)
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 ...
Merging is selected as the discriminant validity testing option given the provided arguments.
*** caught segfault ***
address 0x110, cause 'invalid permissions'
*** caught segfault ***
address 0x110, cause 'invalid permissions'
Traceback:
1: lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n)
2: lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]],
Traceback:
sampling_weights_type = swt_type) 1:
lav_samp_gamma_meat(zc, cluster_idx = cluster_idx, n = n) 3:
lav_samp_from_data(lavdata = lavdata, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov)
4: 2: lav_step05_samp(slot_sample_stats = slot_sample_stats, lavdata = lavdata, lav_samp_gamma(m_y = y, x_idx = x_idx[[g]], cluster_idx = cluster_idx, lavoptions = lavoptions, wls_v = wls_v, nacov = nacov, sample_cov = sample_cov, fixed_x = fixed_x, conditional_x = conditional_x, meanstructure = meanstructure, sample_mean = sample_mean, sample_th = sample_th, sample_nobs = sample_nobs, slopestructure = conditional_x, gamma_n_minus_one = gamma_recipe$n.minus.one, ov_names = ov_names, ov_names_x = ov_names_x, lavpartable = lavpartable) unbiased = gamma_recipe$unbiased, mplus_wls = FALSE, wt = wt[[g]],
sampling_weights_type = swt_type) 5: 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:
lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, 5: std.lv = TRUE, warn = FALSE)
lavaan::lavaan(free1, y, estimator = "MLM", auto.fix.first = FALSE, 9: std.lv = TRUE, warn = FALSE, model.type = "cfa", cmd = "cfa")doTryCatch(return(expr), name, parentenv, handler)
10: 6: tryCatchOne(expr, names, parentenv, handlers[[1L]])eval(sc, parent.frame())
11: 7: tryCatchList(expr, classes, parentenv, handlers)eval(sc, parent.frame())
12: 8: tryCatch(expr, error = function(e) {lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, call <- conditionCall(e) std.lv = TRUE, warn = FALSE) if (!is.null(call)) {
if (identical(call[[1L]], quote(doTryCatch))) 9: call <- sys.call(-4L)doTryCatch(return(expr), name, parentenv, handler) dcall <- deparse(call, nlines = 1L)
prefix <- paste("Error in", dcall, ": ")10: LONG <- 75LtryCatchOne(expr, names, parentenv, handlers[[1L]]) sm <- strsplit(conditionMessage(e), "\n")[[1L]]
w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")11: if (is.na(w)) tryCatchList(expr, classes, parentenv, handlers) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
type = "b")12: if (w > LONG) tryCatch(expr, error = function(e) { prefix <- paste0(prefix, "\n ") call <- conditionCall(e) } if (!is.null(call)) { else prefix <- "Error : " if (identical(call[[1L]], quote(doTryCatch))) msg <- paste0(prefix, conditionMessage(e), "\n") call <- sys.call(-4L) 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)) invisible(structure(msg, class = "try-error", condition = e)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L], }) type = "b")
13: if (w > LONG) try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE, prefix <- paste0(prefix, "\n ") std.lv = TRUE, warn = FALSE), silent = TRUE) }
else prefix <- "Error : "14: msg <- paste0(prefix, conditionMessage(e), "\n")generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, .Internal(seterrmessage(msg[1L])) free1 = free1, free2 = free2, 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, ...)
17: 13: doTryCatch(return(expr), name, parentenv, handler)try(lavaan::cfa(free1, y, estimator = "MLM", auto.fix.first = FALSE,
std.lv = TRUE, warn = FALSE), silent = TRUE)18:
tryCatchOne(expr, names, parentenv, handlers[[1L]])14:
generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, 19: tryCatchList(expr, classes, parentenv, handlers) free1 = free1, free2 = free2, s = s, k = k, nf = nf)
15: 20: FUN(X[[i]], ...)tryCatch(expr, error = function(e) {
call <- conditionCall(e)16: if (!is.null(call)) {lapply(X = S, FUN = FUN, ...) if (identical(call[[1L]], quote(doTryCatch)))
call <- sys.call(-4L)17: dcall <- deparse(call, nlines = 1L)doTryCatch(return(expr), name, parentenv, handler) prefix <- paste("Error in", dcall, ": ")
18: LONG <- 75LtryCatchOne(expr, names, parentenv, handlers[[1L]])
sm <- strsplit(conditionMessage(e), "\n")[[1L]]19: w <- 14L + nchar(dcall, type = "w") + nchar(sm[1L], type = "w")tryCatchList(expr, classes, parentenv, handlers) if (is.na(w)) w <- 14L + nchar(dcall, type = "b") + nchar(sm[1L],
type = "b")20: if (w > LONG) tryCatch(expr, error = function(e) { prefix <- paste0(prefix, "\n ") call <- conditionCall(e) } 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"))) { cat(msg, file = outFile) LONG <- 75L 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], type = "b") invisible(structure(msg, class = "try-error", condition = e))}) if (w > LONG)
prefix <- paste0(prefix, "\n ")21: }try(lapply(X = S, FUN = FUN, ...), silent = TRUE) else prefix <- "Error : "
msg <- paste0(prefix, conditionMessage(e), "\n")22: .Internal(seterrmessage(msg[1L]))sendMaster(try(lapply(X = S, FUN = FUN, ...), silent = TRUE))
if (!silent && isTRUE(getOption("show.error.messages"))) {23: cat(msg, file = outFile)FUN(X[[i]], ...) .Internal(printDeferredWarnings())
}24: invisible(structure(msg, class = "try-error", condition = e))lapply(seq_len(cores), inner.do)})
21: 25: try(lapply(X = S, FUN = FUN, ...), silent = TRUE)parallel::mclapply(1:rep, function(r) {
generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, 22: free1 = free1, free2 = free2, 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, dv = TRUE, dv.factors = c("F4",
"F5"), merge.mod = TRUE)24:
lapply(seq_len(cores), inner.do)27:
eval(code, test_env)25:
parallel::mclapply(1:rep, function(r) {28: generator(x = x, n = n, seed = seeds[r], mode = mode, pop.mod1 = pop.mod1, eval(code, test_env) free1 = free1, free2 = free2, s = s, k = k, nf = nf)
}, mc.cores = cores)29:
26: withCallingHandlers({gen_fit(mod1 = mod, x = bb1992, rep = 10, dv = TRUE, dv.factors = c("F4", eval(code, test_env) "F5"), merge.mod = TRUE) new_expectations <- the$test_expectations > starting_expectations
if (snapshot_skipped) {27: skip("On CRAN")eval(code, test_env) }
else if (!new_expectations && skip_on_empty) {28: skip_empty()eval(code, test_env) }
}, expectation = handle_expectation, packageNotFoundError = function(e) {29: if (on_cran()) {withCallingHandlers({ skip(paste0("{", e$package, "} is not installed.")) eval(code, test_env) } new_expectations <- the$test_expectations > starting_expectations}, snapshot_on_cran = function(cnd) { if (snapshot_skipped) { snapshot_skipped <<- TRUE skip("On CRAN") invokeRestart("muffle_cran_snapshot") }}, skip = handle_skip, warning = handle_warning, message = handle_message, else if (!new_expectations && skip_on_empty) { error = handle_error, interrupt = handle_interrupt) skip_empty()
}}, expectation = handle_expectation, packageNotFoundError = function(e) {30: if (on_cran()) {doTryCatch(return(expr), name, parentenv, handler) skip(paste0("{", e$package, "} is not installed."))
}31: }, snapshot_on_cran = function(cnd) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) snapshot_skipped <<- TRUE
invokeRestart("muffle_cran_snapshot")32: }, skip = handle_skip, warning = handle_warning, message = handle_message, tryCatchList(expr, classes, parentenv, handlers) error = handle_error, interrupt = handle_interrupt)
33: 30: tryCatch(withCallingHandlers({doTryCatch(return(expr), name, parentenv, handler) eval(code, test_env)
new_expectations <- the$test_expectations > starting_expectations31: if (snapshot_skipped) {tryCatchOne(expr, names, parentenv, handlers[[1L]]) skip("On CRAN")
}32: else if (!new_expectations && skip_on_empty) {tryCatchList(expr, classes, parentenv, handlers) skip_empty()
}33: }, expectation = handle_expectation, packageNotFoundError = function(e) {tryCatch(withCallingHandlers({ if (on_cran()) { eval(code, test_env) skip(paste0("{", e$package, "} is not installed.")) new_expectations <- the$test_expectations > starting_expectations } if (snapshot_skipped) {}, snapshot_on_cran = function(cnd) { skip("On CRAN") snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot") else if (!new_expectations && skip_on_empty) {}, skip = handle_skip, warning = handle_warning, message = handle_message, skip_empty() error = handle_error, interrupt = handle_interrupt), error = handle_fatal) }
}, expectation = handle_expectation, packageNotFoundError = function(e) {34: if (on_cran()) {doWithOneRestart(return(expr), restart) skip(paste0("{", e$package, "} is not installed."))
}35: }, snapshot_on_cran = function(cnd) {withOneRestart(expr, restarts[[1L]]) snapshot_skipped <<- TRUE
invokeRestart("muffle_cran_snapshot")36: }, skip = handle_skip, warning = handle_warning, message = handle_message, withRestarts(tryCatch(withCallingHandlers({ error = handle_error, interrupt = handle_interrupt), error = handle_fatal) eval(code, test_env)
new_expectations <- the$test_expectations > starting_expectations34: if (snapshot_skipped) {doWithOneRestart(return(expr), restart) skip("On CRAN")
}35: else if (!new_expectations && skip_on_empty) {withOneRestart(expr, restarts[[1L]]) skip_empty()
}36: }, expectation = handle_expectation, packageNotFoundError = function(e) {withRestarts(tryCatch(withCallingHandlers({ if (on_cran()) { eval(code, test_env) skip(paste0("{", e$package, "} is not installed.")) new_expectations <- the$test_expectations > starting_expectations } if (snapshot_skipped) {}, snapshot_on_cran = function(cnd) { skip("On CRAN") snapshot_skipped <<- TRUE } invokeRestart("muffle_cran_snapshot") else if (!new_expectations && skip_on_empty) {}, skip = handle_skip, warning = handle_warning, message = handle_message, skip_empty() error = handle_error, interrupt = handle_interrupt), error = handle_fatal), } 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)
error_call = error_call)42:
tryCatchOne(expr, names, parentenv, handlers[[1L]])39:
FUN(X[[i]], ...)43:
tryCatchList(expr, classes, parentenv, handlers)40:
lapply(test_paths, test_one_file, env = env, desc = desc, shuffle = shuffle, 44: error_call = error_call)tryCatch(code, testthat_abort_reporter = function(cnd) {
cat(conditionMessage(cnd), "\n")41: NULLdoTryCatch(return(expr), name, parentenv, handler)})
42: 45: tryCatchOne(expr, names, parentenv, handlers[[1L]])with_reporter(reporters$multi, lapply(test_paths, test_one_file,
env = env, desc = desc, shuffle = shuffle, error_call = error_call))43:
tryCatchList(expr, classes, parentenv, handlers)46:
test_files_serial(test_dir = test_dir, test_package = test_package, 44: test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, tryCatch(code, testthat_abort_reporter = function(cnd) { env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, cat(conditionMessage(cnd), "\n") desc = desc, load_package = load_package, shuffle = shuffle, NULL error_call = error_call)})
47: 45: 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)46:
test_files_serial(test_dir = test_dir, test_package = test_package, 48: test_paths = test_paths, load_helpers = load_helpers, reporter = reporter, test_dir("testthat", package = package, reporter = reporter, env = env, stop_on_failure = stop_on_failure, stop_on_warning = stop_on_warning, ..., load_package = "installed") desc = desc, load_package = load_package, shuffle = shuffle,
error_call = error_call)49:
test_check("FCO")47:
test_files(test_dir = path, test_paths = test_paths, test_package = package, An irrecoverable exception occurred. R is aborting now ...
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