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