Running ‘test-all.R’ [4s/6s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("RFishBC")
  Loading required package: RFishBC
  ## RFishBC v0.2.3. See vignettes at derekogle.com/RFishBC/.
  
  ── 1. Failure: aStandard() messages (@test_MESSAGES.R#336)  ────────────────────
  `aStandard("Derek")` threw an error with unexpected message.
  Expected match: "must be one of"
  Actual message: "there is no package called 'FSA'"
  Backtrace:
    1. testthat::expect_error(aStandard("Derek"), "must be one of")
    6. RFishBC::aStandard("Derek")
    7. FSA::capFirst
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   12. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   13. base:::withOneRestart(expr, restarts[[1L]])
   14. base:::doWithOneRestart(return(expr), restart)
  
  ── 2. Failure: aStandard() messages (@test_MESSAGES.R#338)  ────────────────────
  `aStandard(c("Walleye", "Bluegill"))` threw an error with unexpected message.
  Expected match: "have only one name in"
  Actual message: "there is no package called 'FSA'"
  Backtrace:
    1. testthat::expect_error(aStandard(c("Walleye", "Bluegill")), "have only one name in")
    6. RFishBC::aStandard(c("Walleye", "Bluegill"))
    7. FSA::capFirst
    8. base::getExportedValue(pkg, name)
    9. base::asNamespace(ns)
   10. base::getNamespace(ns)
   11. base::loadNamespace(name)
   12. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   13. base:::withOneRestart(expr, restarts[[1L]])
   14. base:::doWithOneRestart(return(expr), restart)
  
  ── 3. Error: backCalc() output values (@test_OUTPUTS.R#417)  ───────────────────
  there is no package called 'FSA'
  Backtrace:
   1. RFishBC::aStandard("Smallmouth Bass")
   2. FSA::capFirst
   3. base::getExportedValue(pkg, name)
   4. base::asNamespace(ns)
   5. base::getNamespace(ns)
   6. base::loadNamespace(name)
   7. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   8. base:::withOneRestart(expr, restarts[[1L]])
   9. base:::doWithOneRestart(return(expr), restart)
  
  ── 4. Error: aStandard() outputs (@test_OUTPUTS.R#444)  ────────────────────────
  there is no package called 'FSA'
  Backtrace:
    1. testthat::expect_type(aStandard("Bluegill"), "integer")
    4. RFishBC::aStandard("Bluegill")
    5. FSA::capFirst
    6. base::getExportedValue(pkg, name)
    7. base::asNamespace(ns)
    8. base::getNamespace(ns)
    9. base::loadNamespace(name)
   10. base::withRestarts(stop(cond), retry_loadNamespace = function() NULL)
   11. base:::withOneRestart(expr, restarts[[1L]])
   12. base:::doWithOneRestart(return(expr), restart)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 446 | SKIPPED: 0 | WARNINGS: 3 | FAILED: 4 ]
  1. Failure: aStandard() messages (@test_MESSAGES.R#336) 
  2. Failure: aStandard() messages (@test_MESSAGES.R#338) 
  3. Error: backCalc() output values (@test_OUTPUTS.R#417) 
  4. Error: aStandard() outputs (@test_OUTPUTS.R#444) 
  
  Error: testthat unit tests failed
  Execution halted