Running ‘testthat.R’ [6s/8s]
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(BiostatsUHNplus)
  > 
  > test_check("BiostatsUHNplus")
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_calculations.R:19:3'): covsum nested calculates correctly with no maincov ──
  Error in `charToDate(x)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. └─BiostatsUHNplus:::covsum_nested(...) at test_calculations.R:19:3
    2.   └─reportRmd:::covsum(...)
    3.     └─base::lapply(...)
    4.       └─reportRmd (local) FUN(X[[i]], ...)
    5.         └─base::mapply(...)
    6.           └─reportRmd (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
    7.             └─base::Ops.Date(sumCov[4], "NaN")
    8.               ├─base::as.Date(e2)
    9.               └─base::as.Date.character(e2)
   10.                 └─base (local) charToDate(x)
  ── Error ('test_calculations.R:29:3'): covsum nested calculates correctly with maincov ──
  Error in `charToDate(x)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. └─BiostatsUHNplus:::covsum_nested(...) at test_calculations.R:29:3
    2.   └─reportRmd:::covsum(...)
    3.     └─base::lapply(...)
    4.       └─reportRmd (local) FUN(X[[i]], ...)
    5.         └─base::mapply(...)
    6.           └─reportRmd (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
    7.             └─base::Ops.Date(sumCov[4], "NaN")
    8.               ├─base::as.Date(e2)
    9.               └─base::as.Date.character(e2)
   10.                 └─base (local) charToDate(x)
  ── Error ('test_calculations.R:40:3'): covsum nested includes missing correctly when presenting row percentages ──
  Error in `charToDate(x)`: character string is not in a standard unambiguous format
  Backtrace:
       ▆
    1. └─BiostatsUHNplus:::covsum_nested(...) at test_calculations.R:40:3
    2.   └─reportRmd:::covsum(...)
    3.     └─base::lapply(...)
    4.       └─reportRmd (local) FUN(X[[i]], ...)
    5.         └─base::mapply(...)
    6.           └─reportRmd (local) `<fn>`(dots[[1L]][[1L]], dots[[2L]][[1L]])
    7.             └─base::Ops.Date(sumCov[4], "NaN")
    8.               ├─base::as.Date(e2)
    9.               └─base::as.Date.character(e2)
   10.                 └─base (local) charToDate(x)
  
  [ FAIL 3 | WARN 3 | SKIP 0 | PASS 0 ]
  Error: Test failures
  Execution halted