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