CRAN Package Check Results for Package JSmediation

Last updated on 2024-02-24 12:49:21 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.2.1 4.37 226.04 230.41 ERROR
r-devel-linux-x86_64-debian-gcc 0.2.1 3.54 168.14 171.68 ERROR
r-devel-linux-x86_64-fedora-clang 0.2.1 288.41 ERROR
r-devel-linux-x86_64-fedora-gcc 0.2.1 307.20 ERROR
r-devel-windows-x86_64 0.2.1 5.00 167.00 172.00 ERROR
r-patched-linux-x86_64 0.2.1 8.04 217.48 225.52 ERROR
r-release-linux-x86_64 0.2.1 2.99 230.80 233.79 ERROR
r-release-macos-arm64 0.2.1 91.00 OK
r-release-macos-x86_64 0.2.1 168.00 OK
r-release-windows-x86_64 0.2.1 6.00 218.00 224.00 ERROR
r-oldrel-macos-arm64 0.2.1 73.00 OK
r-oldrel-windows-x86_64 0.2.1 6.00 205.00 211.00 ERROR

Additional issues

noSuggests

Check Details

Version: 0.2.1
Check: Rd files
Result: NOTE checkRd: (-1) compute_indirect_effect_for.Rd:47: Lost braces; missing escapes or markup? 47 | Thanks to the returned values of \eqn{a}{a} and {b}{b} (\eqn{b_51}{b_51} | ^ checkRd: (-1) compute_indirect_effect_for.Rd:47: Lost braces 47 | Thanks to the returned values of \eqn{a}{a} and {b}{b} (\eqn{b_51}{b_51} | ^ checkRd: (-1) mdt_simple.Rd:64: Lost braces; missing escapes or markup? 64 | through {M} (see Models section). | ^ checkRd: (-1) mdt_within.Rd:76: Lost braces; missing escapes or markup? 76 | through {M} (see Models section). | ^ checkRd: (-1) mdt_within_wide.Rd:73: Lost braces; missing escapes or markup? 73 | through {M} (see Models section). | ^ Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc

Version: 0.2.1
Check: examples
Result: ERROR Running examples in ‘JSmediation-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: plot_assumptions > ### Title: Returns diagnostic plots for the linear model used in a > ### mediation > ### Aliases: plot_assumptions > > ### ** Examples > > data(ho_et_al) > ho_et_al$condition_c <- build_contrast(ho_et_al$condition, + "Low discrimination", + "High discrimination") > my_model <- + mdt_simple(data = ho_et_al, + IV = condition_c, + DV = hypodescent, + M = linkedfate) > > plot_assumptions(my_model) For confidence bands, please install `qqplotr`. Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 4.481 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.1723 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 3.8125e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 0.029689 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : pseudoinverse used at 4.481 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : neighborhood radius 0.1723 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : reciprocal condition number 3.8125e-15 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : There are other near singularities as well. 0.029689 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 0.00223 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.00042957 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 4.9932e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 1.8453e-07 Error in `map2()`: ℹ In index: 1. ℹ With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─JSmediation::plot_assumptions(my_model) 2. ├─JSmediation:::plot_assumptions.mediation_model(my_model) 3. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 4. ├─purrr::iwalk(...) 5. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 6. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 7. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 8. │ ├─purrr:::with_indexed_errors(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ ├─purrr:::call_with_cleanup(...) 11. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 12. │ ├─... %>% print() 13. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 14. ├─base::print(.) 15. └─base::.handleSimpleError(...) 16. └─purrr (local) h(simpleError(msg, call)) 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) Execution halted Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64

Version: 0.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [160s/161s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [112s/157s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.2.1
Check: examples
Result: ERROR Running examples in ‘JSmediation-Ex.R’ failed The error most likely occurred in: > ### Name: plot_assumptions > ### Title: Returns diagnostic plots for the linear model used in a > ### mediation > ### Aliases: plot_assumptions > > ### ** Examples > > data(ho_et_al) > ho_et_al$condition_c <- build_contrast(ho_et_al$condition, + "Low discrimination", + "High discrimination") > my_model <- + mdt_simple(data = ho_et_al, + IV = condition_c, + DV = hypodescent, + M = linkedfate) > > plot_assumptions(my_model) For confidence bands, please install `qqplotr`. Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 4.481 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.1723 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 3.8125e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 0.029689 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : pseudoinverse used at 4.481 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : neighborhood radius 0.1723 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : reciprocal condition number 3.8125e-15 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : There are other near singularities as well. 0.029689 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 0.00223 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.00042957 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 4.9932e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 1.8453e-07 Error in `map2()`: ℹ In index: 1. ℹ With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─JSmediation::plot_assumptions(my_model) 2. ├─JSmediation:::plot_assumptions.mediation_model(my_model) 3. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 4. ├─purrr::iwalk(...) 5. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 6. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 7. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 8. │ ├─purrr:::with_indexed_errors(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ ├─purrr:::call_with_cleanup(...) 11. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 12. │ ├─... %>% print() 13. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 14. ├─base::print(.) 15. └─base::.handleSimpleError(...) 16. └─purrr (local) h(simpleError(msg, call)) 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-x86_64, r-release-windows-x86_64

Version: 0.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [188s/162s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-fedora-clang

Version: 0.2.1
Check: examples
Result: ERROR Running examples in ‘JSmediation-Ex.R’ failed The error most likely occurred in: > ### Name: plot_assumptions > ### Title: Returns diagnostic plots for the linear model used in a > ### mediation > ### Aliases: plot_assumptions > > ### ** Examples > > data(ho_et_al) > ho_et_al$condition_c <- build_contrast(ho_et_al$condition, + "Low discrimination", + "High discrimination") > my_model <- + mdt_simple(data = ho_et_al, + IV = condition_c, + DV = hypodescent, + M = linkedfate) > > plot_assumptions(my_model) Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 4.481 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.1723 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 3.8125e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 0.029689 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : pseudoinverse used at 4.481 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : neighborhood radius 0.1723 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : reciprocal condition number 3.8125e-15 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : There are other near singularities as well. 0.029689 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 0.00223 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.00042957 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 4.9932e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 1.8453e-07 Error in `map2()`: ℹ In index: 1. ℹ With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─JSmediation::plot_assumptions(my_model) 2. ├─JSmediation:::plot_assumptions.mediation_model(my_model) 3. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 4. ├─purrr::iwalk(...) 5. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 6. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 7. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 8. │ ├─purrr:::with_indexed_errors(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ ├─purrr:::call_with_cleanup(...) 11. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 12. │ ├─... %>% print() 13. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 14. ├─base::print(.) 15. └─base::.handleSimpleError(...) 16. └─purrr (local) h(simpleError(msg, call)) 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [192s/167s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-devel-linux-x86_64-fedora-gcc

Version: 0.2.1
Check: tests
Result: ERROR Running 'testthat.R' [81s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-devel-windows-x86_64

Version: 0.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [146s/144s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-patched-linux-x86_64

Version: 0.2.1
Check: tests
Result: ERROR Running ‘testthat.R’ [158s/160s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-release-linux-x86_64

Version: 0.2.1
Check: tests
Result: ERROR Running 'testthat.R' [118s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-release-windows-x86_64

Version: 0.2.1
Check: examples
Result: ERROR Running examples in 'JSmediation-Ex.R' failed The error most likely occurred in: > ### Name: plot_assumptions > ### Title: Returns diagnostic plots for the linear model used in a > ### mediation > ### Aliases: plot_assumptions > > ### ** Examples > > data(ho_et_al) > ho_et_al$condition_c <- build_contrast(ho_et_al$condition, + "Low discrimination", + "High discrimination") > my_model <- + mdt_simple(data = ho_et_al, + IV = condition_c, + DV = hypodescent, + M = linkedfate) > > plot_assumptions(my_model) For confidence bands, please install `qqplotr`. Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 4.481 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.1723 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 2.2957e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 0.029689 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : pseudoinverse used at 4.481 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : neighborhood radius 0.1723 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : reciprocal condition number 2.2957e-15 Warning in predLoess(object$y, object$x, newx = if (is.null(newdata)) object$x else if (is.data.frame(newdata)) as.matrix(model.frame(delete.response(terms(object)), : There are other near singularities as well. 0.029689 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : pseudoinverse used at 0.00223 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : neighborhood radius 0.00042957 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : reciprocal condition number 2.1406e-15 Warning in simpleLoess(y, x, w, span, degree = degree, parametric = parametric, : There are other near singularities as well. 1.8453e-07 Error in `map2()`: ℹ In index: 1. ℹ With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─JSmediation::plot_assumptions(my_model) 2. ├─JSmediation:::plot_assumptions.mediation_model(my_model) 3. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 4. ├─purrr::iwalk(...) 5. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 6. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 7. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 8. │ ├─purrr:::with_indexed_errors(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ ├─purrr:::call_with_cleanup(...) 11. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 12. │ ├─... %>% print() 13. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 14. ├─base::print(.) 15. └─base::.handleSimpleError(...) 16. └─purrr (local) h(simpleError(msg, call)) 17. └─cli::cli_abort(...) 18. └─rlang::abort(...) Execution halted Flavor: r-oldrel-windows-x86_64

Version: 0.2.1
Check: tests
Result: ERROR Running 'testthat.R' [117s] Running the tests in 'tests/testthat.R' failed. Complete output: > library(testthat) > library(JSmediation) > > test_check("JSmediation") Starting 2 test processes [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-plot_assumptions.R:30:3'): check_assumptions_plot ────────────── <purrr_error_indexed/rlang_error/error/condition> Error in `map2(.x, .y, .f, ..., .progress = .progress)`: i In index: 1. i With name: X -> Y. Caused by error in `assumption_plot + patchwork::plot_annotation(title = title, subtitle = glue::glue( "Model formula: {model_formula}"), )`: ! non-numeric argument to binary operator Backtrace: ▆ 1. ├─testthat::expect_warning(...) at test-plot_assumptions.R:30:3 2. │ └─testthat:::expect_condition_matching(...) 3. │ └─testthat:::quasi_capture(...) 4. │ ├─testthat (local) .capture(...) 5. │ │ └─base::withCallingHandlers(...) 6. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 7. ├─JSmediation::plot_assumptions(...) 8. ├─JSmediation:::plot_assumptions.mediation_model(...) 9. │ └─purrr::pluck(mediation_model, "js_models") %>% ... 10. ├─purrr::iwalk(...) 11. │ └─purrr::walk2(.x, vec_index(.x), .f, ...) 12. │ └─purrr::map2(.x, .y, .f, ..., .progress = .progress) 13. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 14. │ ├─purrr:::with_indexed_errors(...) 15. │ │ └─base::withCallingHandlers(...) 16. │ ├─purrr:::call_with_cleanup(...) 17. │ └─JSmediation (local) .f(.x[[i]], .y[[i]], ...) 18. │ ├─... %>% print() 19. │ └─JSmediation:::check_model_plot(model = .x, title = .y, tests_to_perform = tests_to_perform) 20. ├─base::print(.) 21. └─base::.handleSimpleError(...) 22. └─purrr (local) h(simpleError(msg, call)) 23. └─cli::cli_abort(...) 24. └─rlang::abort(...) [ FAIL 1 | WARN 2 | SKIP 0 | PASS 88 ] Deleting unused snapshots: • plot_assumptions/last-plot-plot-assumptions-produces.svg Error: Test failures Execution halted Flavor: r-oldrel-windows-x86_64