Running ‘testthat.R’ [64s/80s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(xpose)
  Loading required package: ggplot2
  
  Attaching package: 'xpose'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("xpose")
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 380 ]
  
  ══ Skipped tests (7) ═══════════════════════════════════════════════════════════
  • On CRAN (7): 'test-model-summary.R:59:3', 'test-read_nm_files.R:54:3',
    'test-read_nm_tables.R:61:3', 'test-read_nm_tables.R:71:3',
    'test-vpc.R:50:3', 'test-xpose_data.R:31:3', 'test-xpose_data.R:47:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-plots.R:33:1'): (code run outside of `test_that()`) ────────────
  <purrr_error_indexed/rlang_error/error/condition>
  Error in `purrr::map(X, function(x) {
      code_x <- substitute_q(code, list(.fun = as.symbol(x)) %>% 
          purrr::set_names(paste0(".", name_x)))
      attr(code_x, "srcref") <- attr(code, "srcref")
      do.call(get("test_code", envir = asNamespace("testthat")), 
          list(test = paste(desc, "for", name_x, x), code = code_x), 
          envir = envir)
  })`: ℹ In index: 1.
  Caused by error:
  ! argument "env" is missing, with no default
  Backtrace:
       ▆
    1. ├─xpose:::test_that_for_all(...) at test-plots.R:33:0
    2. │ └─purrr::map(...) at tests/testthat/helper-test_that_for_all.R:13:2
    3. │   └─purrr:::map_("list", .x, .f, ..., .progress = .progress)
    4. │     ├─purrr:::with_indexed_errors(...)
    5. │     │ └─base::withCallingHandlers(...)
    6. │     ├─purrr:::call_with_cleanup(...)
    7. │     └─xpose (local) .f(.x[[i]], ...)
    8. │       └─base::do.call(...) at tests/testthat/helper-test_that_for_all.R:20:6
    9. ├─testthat (local) `<fn>`(...)
   10. │ └─base::new.env(parent = env)
   11. └─base::.handleSimpleError(...)
   12.   └─purrr (local) h(simpleError(msg, call))
   13.     └─cli::cli_abort(...)
   14.       └─rlang::abort(...)
  
  [ FAIL 1 | WARN 0 | SKIP 7 | PASS 380 ]
  Error: Test failures
  Execution halted