Running ‘testthat.R’ [6s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(scriptName)
  > 
  > test_check("scriptName")
  Error: Predicate functions must return a single `TRUE` or `FALSE`, not a logical vector of length 0
  Execution halted
  ── 1. Failure: functions work under R --file (@test.all.R#22)  ─────────────────
  run_r("current_filename.R") not identical to " chr \"current_filename.R\"".
  Lengths differ: 0 is not 1
  
  Error: Predicate functions must return a single `TRUE` or `FALSE`, not a logical vector of length 0
  Execution halted
  ── 2. Failure: functions work under R --file (@test.all.R#23)  ─────────────────
  run_r("current_source_filename.R") not identical to " NULL".
  Lengths differ: 0 is not 1
  
  Error: Predicate functions must return a single `TRUE` or `FALSE`, not a logical vector of length 0
  Execution halted
  ── 3. Failure: functions work under R -f (@test.all.R#33)  ─────────────────────
  run_r("current_filename.R") not identical to " chr \"current_filename.R\"".
  Lengths differ: 0 is not 1
  
  Error: Predicate functions must return a single `TRUE` or `FALSE`, not a logical vector of length 0
  Execution halted
  ── 4. Failure: functions work under R -f (@test.all.R#34)  ─────────────────────
  run_r("current_source_filename.R") not identical to " NULL".
  Lengths differ: 0 is not 1
  
  Error: Predicate functions must return a single `TRUE` or `FALSE`, not a logical vector of length 0
  Execution halted
  ── 5. Failure: functions work under Rscript (@test.all.R#44)  ──────────────────
  run_rscript("current_filename.R") not identical to " chr \"current_filename.R\"".
  Lengths differ: 0 is not 1
  
  Error: Predicate functions must return a single `TRUE` or `FALSE`, not a logical vector of length 0
  Execution halted
  ── 6. Failure: functions work under Rscript (@test.all.R#45)  ──────────────────
  run_rscript("current_source_filename.R") not identical to " NULL".
  Lengths differ: 0 is not 1
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 12 SKIPPED: 0 FAILED: 6
  1. Failure: functions work under R --file (@test.all.R#22) 
  2. Failure: functions work under R --file (@test.all.R#23) 
  3. Failure: functions work under R -f (@test.all.R#33) 
  4. Failure: functions work under R -f (@test.all.R#34) 
  5. Failure: functions work under Rscript (@test.all.R#44) 
  6. Failure: functions work under Rscript (@test.all.R#45) 
  
  Error: testthat unit tests failed
  Execution halted