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