R Under development (unstable) (2026-01-15 r89304 ucrt) -- "Unsuffered Consequences" Copyright (C) 2026 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > library(netSEM) > > test_check("netSEM") Saving _problems/test-netSEMp1-2.R Saving _problems/test-netSEMp2-2.R Saving _problems/test-plot-3.R Saving _problems/test-plot-9.R [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-netSEMp1.R:2:3'): Check if netSEMp1 gives correct output ─────── Error in `map2(.x, .y, .f, ...)`: i In index: 1. Caused by error in `loadNamespace()`: ! there is no package called 'broom' Backtrace: ▆ 1. ├─testthat::expect_s3_class(...) at test-netSEMp1.R:2:3 2. │ └─testthat::quasi_label(enquo(object)) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─netSEM::netSEMp1(acrylic, exogenous = "IrradTot", endogenous = "YI") 5. │ ├─base::suppressWarnings(...) 6. │ │ └─base::withCallingHandlers(...) 7. │ └─purrr::map2_dfr(...) 8. │ └─purrr::map2(.x, .y, .f, ...) 9. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 10. │ ├─purrr:::with_indexed_errors(...) 11. │ │ └─base::withCallingHandlers(...) 12. │ ├─purrr:::call_with_cleanup(...) 13. │ └─netSEM (local) .f(.x[[i]], .y[[i]], ...) 14. │ └─netSEM:::collect_netSEM_models(Resp = .y, Var = .x, x = x) 15. │ └─netSEM:::netSEM_linear(Resp, Var, x) 16. │ └─broom::glance(model) %>% ... 17. ├─dplyr::mutate(...) 18. ├─base::loadNamespace(x) 19. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 20. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 21. │ │ └─base (local) doWithOneRestart(return(expr), restart) 22. │ └─base::stop(cond) 23. └─purrr (local) ``(``) 24. └─cli::cli_abort(...) 25. └─rlang::abort(...) ── Error ('test-netSEMp2.R:2:3'): Check if netSEMp2 gives correct output ─────── Error in `map2(.x, .y, .f, ...)`: i In index: 1. Caused by error in `loadNamespace()`: ! there is no package called 'broom' Backtrace: ▆ 1. ├─testthat::expect_s3_class(...) at test-netSEMp2.R:2:3 2. │ └─testthat::quasi_label(enquo(object)) 3. │ └─rlang::eval_bare(expr, quo_get_env(quo)) 4. ├─netSEM::netSEMp2(acrylic, exogenous = "IrradTot", endogenous = "YI") 5. │ └─netSEM::netSEMp1(x, exogenous, endogenous) 6. │ ├─base::suppressWarnings(...) 7. │ │ └─base::withCallingHandlers(...) 8. │ └─purrr::map2_dfr(...) 9. │ └─purrr::map2(.x, .y, .f, ...) 10. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 11. │ ├─purrr:::with_indexed_errors(...) 12. │ │ └─base::withCallingHandlers(...) 13. │ ├─purrr:::call_with_cleanup(...) 14. │ └─netSEM (local) .f(.x[[i]], .y[[i]], ...) 15. │ └─netSEM:::collect_netSEM_models(Resp = .y, Var = .x, x = x) 16. │ └─netSEM:::netSEM_linear(Resp, Var, x) 17. │ └─broom::glance(model) %>% ... 18. ├─dplyr::mutate(...) 19. ├─base::loadNamespace(x) 20. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 21. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 22. │ │ └─base (local) doWithOneRestart(return(expr), restart) 23. │ └─base::stop(cond) 24. └─purrr (local) ``(``) 25. └─cli::cli_abort(...) 26. └─rlang::abort(...) ── Error ('test-plot.R:3:3'): Check if plot.netSEMp1 has correct output ──────── Error in `map2(.x, .y, .f, ...)`: i In index: 1. Caused by error in `loadNamespace()`: ! there is no package called 'broom' Backtrace: ▆ 1. ├─netSEM::netSEMp1(acrylic, exogenous = "IrradTot", endogenous = "YI") at test-plot.R:3:3 2. │ ├─base::suppressWarnings(...) 3. │ │ └─base::withCallingHandlers(...) 4. │ └─purrr::map2_dfr(...) 5. │ └─purrr::map2(.x, .y, .f, ...) 6. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 7. │ ├─purrr:::with_indexed_errors(...) 8. │ │ └─base::withCallingHandlers(...) 9. │ ├─purrr:::call_with_cleanup(...) 10. │ └─netSEM (local) .f(.x[[i]], .y[[i]], ...) 11. │ └─netSEM:::collect_netSEM_models(Resp = .y, Var = .x, x = x) 12. │ └─netSEM:::netSEM_linear(Resp, Var, x) 13. │ └─broom::glance(model) %>% ... 14. ├─dplyr::mutate(...) 15. ├─base::loadNamespace(x) 16. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 17. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 18. │ │ └─base (local) doWithOneRestart(return(expr), restart) 19. │ └─base::stop(cond) 20. └─purrr (local) ``(``) 21. └─cli::cli_abort(...) 22. └─rlang::abort(...) ── Error ('test-plot.R:9:3'): Check if plot.netSEMp2 has correct output ──────── Error in `map2(.x, .y, .f, ...)`: i In index: 1. Caused by error in `loadNamespace()`: ! there is no package called 'broom' Backtrace: ▆ 1. ├─netSEM::netSEMp2(acrylic, exogenous = "IrradTot", endogenous = "YI") at test-plot.R:9:3 2. │ └─netSEM::netSEMp1(x, exogenous, endogenous) 3. │ ├─base::suppressWarnings(...) 4. │ │ └─base::withCallingHandlers(...) 5. │ └─purrr::map2_dfr(...) 6. │ └─purrr::map2(.x, .y, .f, ...) 7. │ └─purrr:::map2_("list", .x, .y, .f, ..., .progress = .progress) 8. │ ├─purrr:::with_indexed_errors(...) 9. │ │ └─base::withCallingHandlers(...) 10. │ ├─purrr:::call_with_cleanup(...) 11. │ └─netSEM (local) .f(.x[[i]], .y[[i]], ...) 12. │ └─netSEM:::collect_netSEM_models(Resp = .y, Var = .x, x = x) 13. │ └─netSEM:::netSEM_linear(Resp, Var, x) 14. │ └─broom::glance(model) %>% ... 15. ├─dplyr::mutate(...) 16. ├─base::loadNamespace(x) 17. │ ├─base::withRestarts(stop(cond), retry_loadNamespace = function() NULL) 18. │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 19. │ │ └─base (local) doWithOneRestart(return(expr), restart) 20. │ └─base::stop(cond) 21. └─purrr (local) ``(``) 22. └─cli::cli_abort(...) 23. └─rlang::abort(...) [ FAIL 4 | WARN 0 | SKIP 0 | PASS 0 ] Error: ! Test failures. Execution halted