Running ‘testthat.R’ [2s/2s]
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
  
  Enrolling 10 subjects requires 25 weeks
  
   2.5%   50% 97.5% 
     25    25    25 
  Enrolling 10 subjects requires 33 weeks
  
   2.5%   50% 97.5% 
     33    33    33 
    2.5% 50% 97.5%
  0    0   0     0
  1    0   0     0
  2    2   2     2
  3    2   2     2
  4    2   2     2
  5    3   3     3
  	 ... 
      2.5% 50% 97.5%
  99    39  39    39
  100   39  39    39
  101   40  40    40
  102   40  40    40
  103   40  40    40
  104   40  40    40
   2.5%   50% 97.5% 
     85    85    85 
    2.5% 50% 97.5%
  0    0   0     0
  1    0   0     0
  2    2   2     2
  3    2   2     2
  4    2   2     2
  5    3   3     3
  
  
  Variables [1m[38;5;28mEnrolled[0m and [1m[38;5;28mScreenDt[0m were successfully loaded
  
  Saving _problems/test-exports-66.R
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 31 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-exports.R:66:3'): When knitr is not available2 ───────────────
  Expected `LoadData(gripsYR1, ScreenDt, Enrolled)` not to throw any errors.
  Actually got a <packageNotFoundError> with message:
    there is no package called 'knitr'
  
  [ FAIL 1 | WARN 0 | SKIP 0 | PASS 31 ]
  Error:
  ! Test failures.
  Execution halted