Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [55s/76s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # 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(PKNCA)
  
  Attaching package: 'PKNCA'
  
  The following object is masked from 'package:stats':
  
      filter
  
  > 
  > test_check("PKNCA")
  No dose information provided, calculations requiring dose will return NA.
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 1623 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-class-PKNCAresults.R:265:3'): units work for calculations and summaries with one set of units across all analytes ──
  Error in `pknca_units_table(concu = "ng/mL", doseu = "mg", amountu = "mg", 
      timeu = "hr", conversions = data.frame(PPORRESU = "ng/mL", 
          PPSTRESU = "mg/mL"))`: The units package is required for automatic unit conversion
  Backtrace:
      ▆
   1. └─PKNCA::pknca_units_table(...) at test-class-PKNCAresults.R:265:3
  ── Error ('test-class-PKNCAresults.R:335:3'): units work for calculations and summaries with one set of units across all analytes ──
  Error in `pknca_units_table(concu = "ng/mL", doseu = "mg", amountu = "mg", 
      timeu = "hr", conversions = data.frame(PPORRESU = "ng/mL", 
          PPSTRESU = "mg/mL"))`: The units package is required for automatic unit conversion
  Backtrace:
      ▆
   1. └─PKNCA::pknca_units_table(...) at test-class-PKNCAresults.R:335:3
  ── Error ('test-class-summary_PKNCAresults.R:319:3'): summary pretty_name control ──
  Error in `pknca_units_table(concu = "ng/mL", doseu = "mg", amountu = "mg", 
      timeu = "hr", conversions = data.frame(PPORRESU = "ng/mL", 
          PPSTRESU = "mg/mL"))`: The units package is required for automatic unit conversion
  Backtrace:
      ▆
   1. └─PKNCA::pknca_units_table(...) at test-class-summary_PKNCAresults.R:319:3
  ── Error ('test-unit-support.R:36:3'): unit conversion tables are created correctly ──
  Error in `pknca_units_table(concu = "ng/mL", doseu = "mg/kg", amountu = "mg", 
      timeu = "hr", conversions = data.frame(PPORRESU = c("(mg/kg)/(hr*ng/mL)", 
          "(mg/kg)/(ng/mL)"), PPSTRESU = c("mL/hr/kg", "mL/kg")))`: The units package is required for automatic unit conversion
  Backtrace:
      ▆
   1. └─PKNCA::pknca_units_table(...) at test-unit-support.R:36:3
  ── Error ('test-unit-support.R:101:3'): pknca_units_table ──────────────────────
  Error in `pknca_units_table(concu = "ng/mL", doseu = "mg/kg", amountu = "mg", 
      timeu = "hr", conversions = data.frame(PPORRESU = "ng/mL", 
          PPSTRESU = "mol/L"))`: The units package is required for automatic unit conversion
  Backtrace:
      ▆
   1. ├─testthat::expect_error(...) at test-unit-support.R:101: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. └─PKNCA::pknca_units_table(...)
  ── Error ('test-unit-support.R:166:3'): allow duplicate PPSTRESU units ─────────
  Error in `pknca_units_table(concu = "ng/mL", doseu = "mg/kg", timeu = "hr", 
      conversions = d_conversion)`: The units package is required for automatic unit conversion
  Backtrace:
      ▆
   1. ├─testthat::expect_silent(...) at test-unit-support.R:166:3
   2. │ └─testthat:::quasi_capture(enquo(object), NULL, evaluate_promise)
   3. │   ├─testthat (local) .capture(...)
   4. │   │ ├─withr::with_output_sink(...)
   5. │   │ │ └─base::force(code)
   6. │   │ ├─base::withCallingHandlers(...)
   7. │   │ └─base::withVisible(code)
   8. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
   9. └─PKNCA::pknca_units_table(...)
  ── Error ('test-unit-support.R:172:3'): Use preferred units (#197) ─────────────
  Error in `pknca_units_table(concu = "ng/mL", doseu = "mg/kg", timeu = "hr", 
      amountu = "mg", concu_pref = "ug/mL")`: The units package is required for automatic unit conversion
  Backtrace:
      ▆
   1. └─PKNCA::pknca_units_table(...) at test-unit-support.R:172:3
  
  [ FAIL 7 | WARN 0 | SKIP 0 | PASS 1623 ]
  Error: Test failures
  Execution halted