Running 'test-asserts.R' [16s]
  Running 'test-charlson.R' [27s]
  Running 'test-comorbidities.R' [4s]
  Running 'test-data-frame-tools.R' [4s]
  Running 'test-elixhauser-example.R' [4s]
  Running 'test-elixhauser.R' [3s]
  Running 'test-icd_compact_to_full.R' [4s]
  Running 'test-internal-data.R' [21s]
  Running 'test-is_icd.R' [37s]
  Running 'test-locked-bindings.R' [8s]
  Running 'test-longitudinal-comorbidities.R' [5s]
  Running 'test-longitudinal-pccc-v3.1.R' [4s]
  Running 'test-lookup_icd_codes.R' [15s]
  Running 'test-pccc-deltas.R' [4s]
  Running 'test-pccc.R' [19s]
  Running 'test-summary-charlson.R' [6s]
  Running 'test-summary-elixhauser.R' [5s]
  Running 'test-summary-pccc-subconditions.R' [6s]
  Running 'test-summary-pccc.R' [10s]
  Running 'test-tibble-datatable.R' [11s]
  Running 'test-vs-ahrq.R' [6s]
  Running 'test-vs-pccc_1.0.6.R' [8s]
  Running 'test-zero-row-inputs.R' [5s]
  Running 'utilities.R' [0s]
Running the tests in 'tests/test-pccc-deltas.R' failed.
Complete output:
  > source('utilities.R')
  > # test the construction and results of the icd to pccc mappings.  the code to
  > # build the data sets is in
  > # inst/mappings/icd-codes-and-mappings.R
  > #
  > # ANY CHANGES IN THE CODES AND THESE TESTS MAY IMPACT THE WRITE UP AND THESE TESTS
  > if (!requireNamespace("data.table", quietly = TRUE)) {
  +   message("SKIP: data.table not available; skipping test-pccc-deltas.R")
  +   quit(save = "no", status = 0, runLast = FALSE)
  + }
  > 
  > #
  > library(medicalcoder)
  > library(data.table)
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  > setDTthreads(threads = 1L) # to prevent CPU time exceeding elapsed time on CRAN
  > 
  > source(
  +   system.file("mappings", "icd-codes-and-mappings.R", package = "medicalcoder"),
  +   verbose = interactive()
  + )
  Error in `[.data.table`(icd_codes, , `:=`(srcs, length(unique(src))),  : 
    attempt access index 12/12 in VECTOR_ELT
  Calls: source -> withVisible -> eval -> eval -> [ -> [.data.table
  Execution halted