Running ‘testthat.R’ [65s/65s]
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")
  ── ERROR (test-console_outputs.R:4:1): (code run outside of `test_that()`) ─────
  Error: could not find function "split_chain"
  Backtrace:
       █
    1. ├─`%>%`(...) test-console_outputs.R:4:0
    2. ├─dplyr::filter(...)
    3. ├─dplyr::filter(., ITERATION == 0, .source = "ext")
    4. ├─dplyr::filter(., ID == 110, .source = "data")
    5. └─xpose::vpc_data(., opt = vpc_opt(n_bins = 2), quiet = TRUE)
    6.   ├─vpc::vpc(...)
    7.   ├─vpc:::vpc.default(...)
    8.   │ └─base::do.call(...)
    9.   └─(function (sim = NULL, obs = NULL, psn_folder = NULL, bins = "jenks", ...
   10.     └─`%>%`(...)
  
  ── ERROR (test-edits.R:18:1): (code run outside of `test_that()`) ──────────────
  Error: could not find function "split_chain"
  Backtrace:
      █
   1. └─xpose::vpc_data(xpdb_ex_pk, opt = vpc_opt(n_bins = 2), quiet = TRUE) test-edits.R:18:0
   2.   ├─vpc::vpc(...)
   3.   ├─vpc:::vpc.default(...)
   4.   │ └─base::do.call(...)
   5.   └─(function (sim = NULL, obs = NULL, psn_folder = NULL, bins = "jenks", ...
   6.     └─`%>%`(...)
  
  ── Skip (test-model-summary.R:61:3): summary is properly created with the approp
  Reason: On CRAN
  
  ── Skip (test-read_nm_files.R:56:3): files are imported correctly ──────────────
  Reason: On CRAN
  
  ── Skip (test-read_nm_tables.R:63:3): returns a tibble when user mode is used ──
  Reason: On CRAN
  
  ── Skip (test-read_nm_tables.R:73:3): tables with firstonly are properly handled
  Reason: On CRAN
  
  ── ERROR (test-vpc.R:17:1): (code run outside of `test_that()`) ────────────────
  Error: could not find function "split_chain"
  Backtrace:
      █
   1. └─xpose::vpc_data(xpdb_ex_pk, psn_folder = "data/psn_vpc/", quiet = TRUE) test-vpc.R:17:0
   2.   ├─vpc::vpc(...)
   3.   ├─vpc:::vpc.default(...)
   4.   │ └─base::do.call(...)
   5.   └─(function (sim = NULL, obs = NULL, psn_folder = NULL, bins = "jenks", ...
   6.     └─obs %>% dplyr::group_by(strat, bin) %>% dplyr::mutate(pred_bin = median(as.num(pred)))
  
  ── ERROR (test-xpdb_access.R:193:3): get_special checks input properly ─────────
  Error: could not find function "split_chain"
  Backtrace:
       █
    1. ├─`%>%`(...) test-xpdb_access.R:193:2
    2. ├─xpose::vpc_data(...)
    3. │ └─xpose::check_xpdb(...)
    4. │   └─xpose::is.xpdb(xpdb)
    5. └─xpose::vpc_data(., quiet = TRUE)
    6.   ├─vpc::vpc(...)
    7.   ├─vpc:::vpc.default(...)
    8.   │ └─base::do.call(...)
    9.   └─(function (sim = NULL, obs = NULL, psn_folder = NULL, bins = "jenks", ...
   10.     └─`%>%`(...)
  
  ── ERROR (test-xpdb_access.R:209:3): get_data works properly ───────────────────
  Error: could not find function "split_chain"
  Backtrace:
       █
    1. ├─`%>%`(...) test-xpdb_access.R:209:2
    2. ├─xpose::vpc_data(...)
    3. │ └─xpose::check_xpdb(...)
    4. │   └─xpose::is.xpdb(xpdb)
    5. └─xpose::vpc_data(., quiet = TRUE)
    6.   ├─vpc::vpc(...)
    7.   ├─vpc:::vpc.default(...)
    8.   │ └─base::do.call(...)
    9.   └─(function (sim = NULL, obs = NULL, psn_folder = NULL, bins = "jenks", ...
   10.     └─`%>%`(...)
  
  ── Skip (test-xpose_data.R:33:3): properly creates the xpdb when using the file 
  Reason: On CRAN
  
  ── Skip (test-xpose_data.R:48:3): properly creates the xpdb when using the runno
  Reason: On CRAN
  
  ── Skipped tests  ──────────────────────────────────────────────────────────────
  ● On CRAN (6)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  ERROR (test-console_outputs.R:4:1): (code run outside of `test_that()`)
  ERROR (test-edits.R:18:1): (code run outside of `test_that()`)
  ERROR (test-vpc.R:17:1): (code run outside of `test_that()`)
  ERROR (test-xpdb_access.R:193:3): get_special checks input properly
  ERROR (test-xpdb_access.R:209:3): get_data works properly
  
  [ FAIL 5 | WARN 0 | SKIP 6 | PASS 460 ]
  Error: Test failures
  Execution halted