Package check result: ERROR Check: tests, Result: ERROR Running ‘testthat.R’ [94s/94s] Running the tests in ‘tests/testthat.R’ failed. Complete output: > library(testthat) > library(GDPuc) > > test_check("GDPuc") Saving _problems/test-01_check_user_input-63.R Saving _problems/test-05_convertGDP-191.R Saving _problems/test-05_convertGDP-210.R [ FAIL 3 | WARN 0 | SKIP 3 | PASS 6578 ] ══ Skipped tests (3) ═══════════════════════════════════════════════════════════ • {magclass} is not installed (1): 'test-05_convertGDP.R:72:3' • {magclass} is not installed. (1): 'test-02_transform_user_input.R:27:3' • {zoo} is not installed (1): 'test-06_replace_NAs.R:1:1' ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-01_check_user_input.R:57:3'): with_regions argument ──────────── Error in `check_with_regions(unit_in, unit_out, source, with_regions)`: The package "madrat" is required in order for madrat regionmappings to be found. Backtrace: ▆ 1. ├─testthat::expect_error(...) at test-01_check_user_input.R:57: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. └─GDPuc:::check_user_input(...) 8. └─GDPuc:::check_with_regions(unit_in, unit_out, source, with_regions) 9. └─rlang::check_installed("madrat", reason = "in order for madrat regionmappings to be found.") ── Error ('test-05_convertGDP.R:188:3'): convertGDP with regions, madrat data-frame ── Error in `check_with_regions(unit_in, unit_out, source, with_regions)`: The package "madrat" is required in order for madrat regionmappings to be found. Backtrace: ▆ 1. ├─testthat::expect_no_warning(...) at test-05_convertGDP.R:188:3 2. │ └─testthat:::expect_no_(...) 3. │ └─testthat:::quasi_capture(enquo(object), NULL, capture) 4. │ ├─testthat (local) .capture(...) 5. │ │ ├─base::withRestarts(...) 6. │ │ │ └─base (local) withOneRestart(expr, restarts[[1L]]) 7. │ │ │ └─base (local) doWithOneRestart(return(expr), restart) 8. │ │ └─base::withCallingHandlers(...) 9. │ └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo)) 10. └─GDPuc::convertGDP(...) 11. ├─base::do.call(check_user_input, arg) 12. └─GDPuc (local) ``(...) 13. └─GDPuc:::check_with_regions(unit_in, unit_out, source, with_regions) 14. └─rlang::check_installed("madrat", reason = "in order for madrat regionmappings to be found.") ── Error ('test-05_convertGDP.R:207:3'): convertGDP using US conversion factors ── Error in `adapt_source(gdp, source, with_regions, replace_NAs, require_year_column)`: The package "zoo" is required in order for 'replace_NAs' to work. Backtrace: ▆ 1. └─GDPuc::convertGDP(...) at test-05_convertGDP.R:207:3 2. └─GDPuc:::transform_user_input(...) 3. └─GDPuc:::adapt_source(...) 4. └─rlang::check_installed(c("zoo"), reason = "in order for 'replace_NAs' to work.") [ FAIL 3 | WARN 0 | SKIP 3 | PASS 6578 ] Error: ! Test failures. Execution halted