Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(cusumcharter)
  > 
  > test_check("cusumcharter")
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  no target value supplied, so using the median of x
  no target value supplied, so using the median of x
  no target value supplied, so using the median of x
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  Saving _problems/test-cusum_control_plot-88.R
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  Saving _problems/test-cusum_control_plot-126.R
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  no target value supplied, so using the mean of x
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 38 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-cusum_control_plot.R:86:3'): date facets work ──────────────────
  Error in ``[.data.table`(testres, , `:=`(datecol, c("2021-01-01", "2021-01-02", "2021-01-03", "2021-01-04", "2021-01-05", "2021-01-06", "2021-01-07", "2021-01-08", "2021-01-09")), by = .id)`: attempt access index 14/14 in VECTOR_ELT
  Backtrace:
      ▆
   1. ├─...[] at test-cusum_control_plot.R:86:3
   2. └─data.table:::`[.data.table`(...) at test-cusum_control_plot.R:86:3
  ── Error ('test-cusum_control_plot.R:126:3'): datetime facets work ─────────────
  Error in ``[.data.table`(testres, , `:=`(datetimecol, c("2021-09-03 22:19:46", "2021-09-03 22:20:46", "2021-09-03 22:21:46", "2021-09-03 22:22:46", "2021-09-03 22:23:46", "2021-09-03 22:24:46", "2021-09-03 22:25:46", "2021-09-03 22:26:46", "2021-09-03 22:27:46")), by = .id)`: attempt access index 14/14 in VECTOR_ELT
  Backtrace:
      ▆
   1. ├─...[] at test-cusum_control_plot.R:126:3
   2. └─data.table:::`[.data.table`(...) at test-cusum_control_plot.R:126:3
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 38 ]
  Error:
  ! Test failures.
  Execution halted