Running ‘testthat.R’ [2s/3s]
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/testing-design.html#sec-tests-files-overview
  > # * https://testthat.r-lib.org/articles/special-files.html
  > 
  > library(testthat)
  > library(RCTRecruit)
  > 
  > test_check("RCTRecruit")
  
  Variables Enrolled and ScreenDt were successfully loaded
  
  
  Variables Enrolled and ScreenDt were successfully loaded
  
  
  Variables Enrolled and ScreenDt were successfully loaded
  
  
  Variables Enrolled and ScreenDt were successfully loaded
  
  
  Variables Enrolled and ScreenDt were successfully loaded
  
  
  Variables Enrolled and ScreenDt were successfully loaded
  
  
  Variables [1m[38;5;28mEnrolled[0m and [1m[38;5;28mScreenDt[0m were successfully loaded
  
  
  Variables [1m[38;5;28mEnrolled[0m and [1m[38;5;28mScreenDt[0m were successfully loaded
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 24 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-exports.R:29:3'): Exported functions ─────────────────────────
  Expected `print(Time2Nsubjects(nSimulations, 10L, efficiencyFactor = 2))` to run without any errors.
  i Actually got a <simpleError> with text:
    fillGaps must be TRUE or FALSE
  ── Failure ('test-exports.R:30:3'): Exported functions ─────────────────────────
  Expected `print(Time2Nsubjects(nSim = nSimulations, 10L))` to run without any errors.
  i Actually got a <simpleError> with text:
    fillGaps must be TRUE or FALSE
  ── Failure ('test-exports.R:31:3'): Exported functions ─────────────────────────
  Expected `print(GetWeekPredCI(10L))` to run without any errors.
  i Actually got a <simpleError> with text:
    fillGaps must be TRUE or FALSE
  ── Failure ('test-exports.R:32:3'): Exported functions ─────────────────────────
  Expected `print(GetDistance(c(gripsYR2Weekly$enrolled, 0L), 10L))` to run without any errors.
  i Actually got a <simpleError> with text:
    fillGaps must be TRUE or FALSE
  ── Error ('test-exports.R:37:3'): Exported functions ───────────────────────────
  Error: fillGaps must be TRUE or FALSE
  Backtrace:
      ▆
   1. └─RCTRecruit::GetWeekPredCI(10L) at test-exports.R:37:3
   2.   └─RCTRecruit:::checkExportedFunctionsArgs()
   3.     └─argsTests[[nam]](nn, val)
   4.       └─RCTRecruit:::err(msg$boolean, em(nam))
  
  [ FAIL 5 | WARN 0 | SKIP 0 | PASS 24 ]
  Error: Test failures
  Execution halted