Running ‘testthat.R’ [21s/26s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(NMsim)
  NMsim 0.2.6. Browse NMsim documentation at
  https://NMautoverse.github.io/NMsim/
  > 
  > test_check("NMsim")
  Saving _problems/test_NMaddSamples-10.R
  Saving _problems/test_NMaddSamples-29.R
  Saving _problems/test_NMaddSamples-51.R
  Saving _problems/test_NMaddSamples-74.R
  Saving _problems/test_NMaddSamples-93.R
  Saving _problems/test_NMaddSamples-117.R
  Saving _problems/test_NMaddSamples-134.R
  Saving _problems/test_NMaddSamples-153.R
  Saving _problems/test_NMaddSamples-171.R
  Saving _problems/test_NMaddSamples-199.R
  Saving _problems/test_NMaddSamples-218.R
  Saving _problems/test_NMaddSamples-230.R
  Saving _problems/test_NMaddSamples-240.R
  Saving _problems/test_NMaddSamples-248.R
  Saving _problems/test_NMaddSamples-258.R
  Saving _problems/test_NMaddSamples-268.R
  Saving _problems/test_NMaddSamples-277.R
  Saving _problems/test_NMaddSamples-289.R
  Saving _problems/test_NMaddSamples-316.R
  Saving _problems/test_NMaddSamples-340.R
  Saving _problems/test_NMaddSamples-378.R
  Saving _problems/test_NMaddSamples-397.R
  Saving _problems/test_NMaddSamples-425.R
  Saving _problems/test_NMcreateDoses-13.R
  Saving _problems/test_NMcreateDoses-20.R
  Saving _problems/test_NMcreateDoses-29.R
  Saving _problems/test_NMcreateDoses-45.R
  Saving _problems/test_NMcreateDoses-56.R
  Saving _problems/test_NMcreateDoses-67.R
  Saving _problems/test_NMcreateDoses-100.R
  Saving _problems/test_NMcreateDoses-113.R
  Saving _problems/test_NMcreateDoses-130.R
  Saving _problems/test_NMcreateDoses-137.R
  Saving _problems/test_NMcreateDoses-147.R
  Saving _problems/test_NMcreateDoses-162.R
  Saving _problems/test_NMcreateDoses-171.R
  Saving _problems/test_NMcreateDoses-197.R
  Saving _problems/test_NMcreateDoses-206.R
  Saving _problems/test_NMcreateDoses-219.R
  Saving _problems/test_NMcreateDoses-227.R
  Saving _problems/test_NMcreateDoses-242.R
  Saving _problems/test_NMcreateDoses-267.R
  Saving _problems/test_NMcreateDoses-277.R
  Saving _problems/test_NMcreateDoses-287.R
  Saving _problems/test_NMcreateMatLines-14.R
  Saving _problems/test_NMcreateMatLines-40.R
  Saving _problems/test_NMreadParsWide-16.R
  Saving _problems/test_NMreadSim-30.R
  Saving _problems/test_NMseed-13.R
  Saving _problems/test_NMseed-31.R
  Saving _problems/test_NMseed-44.R
  Saving _problems/test_NMseed-62.R
  Saving _problems/test_NMsim-23.R
  Saving _problems/test_NMsim_NWPRI-41.R
  Saving _problems/test_NMsim_VarCov-23.R
  Saving _problems/test_NMwriteInits-25.R
  Saving _problems/test_NMwriteInits-50.R
  Saving _problems/test_NMwriteInits-75.R
  Saving _problems/test_NMwriteInits-103.R
  Saving _problems/test_NMwriteInits-125.R
  Saving _problems/test_NMwriteInits-155.R
  Saving _problems/test_NMwriteInits-186.R
  Saving _problems/test_NMwriteInits-219.R
  Saving _problems/test_NMwriteInits-264.R
  Saving _problems/test_NMwriteInits-285.R
  Saving _problems/test_NMwriteInits-311.R
  Saving _problems/test_addEVID2-10.R
  Saving _problems/test_addEVID2-29.R
  Saving _problems/test_addEVID2-51.R
  Saving _problems/test_addEVID2-74.R
  Saving _problems/test_addEVID2-93.R
  Saving _problems/test_addEVID2-119.R
  Saving _problems/test_addEVID2-136.R
  Saving _problems/test_addEVID2-155.R
  Saving _problems/test_addEVID2-173.R
  Saving _problems/test_addEVID2-201.R
  Saving _problems/test_addEVID2-220.R
  Saving _problems/test_addEVID2-232.R
  Saving _problems/test_addEVID2-242.R
  Saving _problems/test_addEVID2-250.R
  Saving _problems/test_addEVID2-260.R
  Saving _problems/test_addEVID2-270.R
  Saving _problems/test_addEVID2-279.R
  Saving _problems/test_addEVID2-291.R
  Saving _problems/test_addEVID2-317.R
  Saving _problems/test_addEVID2-343.R
  Saving _problems/test_addEVID2-369.R
  Saving _problems/test_expandCovLists-9.R
  Saving _problems/test_expandCovLists-29.R
  Saving _problems/test_expandCovLists-50.R
  Saving _problems/test_expandCovLists-73.R
  Saving _problems/test_genPhiFile-15.R
  Saving _problems/test_sampleCovs-10.R
  Saving _problems/test_simPopEtas-20.R
  Saving _problems/test_summarizeCovs-54.R
  Saving _problems/test_summarizeCovs-81.R
  Saving _problems/test_typicalize-10.R
  Saving _problems/test_typicalize-31.R
  Saving _problems/test_typicalize-56.R
  [ FAIL 99 | WARN 0 | SKIP 6 | PASS 28 ]
  
  ══ Skipped tests (6) ═══════════════════════════════════════════════════════════
  • empty test (6): , , , , ,
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test_NMaddSamples.R:10:5'): Basic ───────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 2) at test_NMaddSamples.R:10:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:29:5'): Multiple compartments ───────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_NMaddSamples.R:29:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:51:5'): compartments with covariates ────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_NMaddSamples.R:51:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:74:5'): data.frame CMT ──────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1, as.fun = as.data.frame) at test_NMaddSamples.R:74:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:93:5'): time with covariates ────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:93:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:117:5'): EVID=0 ─────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 2) at test_NMaddSamples.R:117:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:134:5'): time after dose ────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_NMaddSamples.R:134:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:153:5'): TIME and TAPD ──────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_NMaddSamples.R:153:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:171:5'): TAPD with ADDL/II ──────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:171:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:199:5'): simple, more than one id ───────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:199:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:218:5'): TAPD -  covariates on dosing data, not on TAPD ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:218:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:230:5'): TAPD -  covariates on dosing data, and on TAPD ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:230:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:240:5'): all subjects covered ───────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:240:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:248:5'): sampling schemes overlapping into next doses ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:248:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:258:5'): sampling at time of doses ──────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:258:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:268:5'): sampling times not unique ──────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:268:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:277:5'): No CMT column ──────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:277:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:289:5'): Providing DV ───────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:289:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:316:5'): default - common columns are not merged by ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:316:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:340:5'): by unmatched (covariates) ──────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:340:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:378:5'): Unmatched covariates not in by ─────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:378:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:397:5'): Unmatched are not covs ─────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMaddSamples.R:397:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMaddSamples.R:425:5'): MDV missing on doses ───────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0), AMT = 10, CMT = 2, as.fun = "data.table") at test_NMaddSamples.R:425:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:13:5'): Basic ──────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = 10) at test_NMcreateDoses.R:13:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:20:5'): custom CMT value ───────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = 10) at test_NMcreateDoses.R:20:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:29:5'): Expand columns ─────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 2) at test_NMcreateDoses.R:29:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:45:5'): non-unique AMT ─────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:45:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:56:5'): II/ADDL ────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:56:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:67:5'): ADDL and II one by one ─────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:67:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:100:5'): II and ADDL of length=1 ───────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:100:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:113:5'): NA columns ────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:113:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:130:5'): covariates basics ─────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:130:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:137:5'): covariates basics 2 ───────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:137:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:147:5'): covariates not spanning same covariate values ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:147:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:162:5'): covariates spanning same covariate values ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:162:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:171:5'): covariates spanning same covariate values - addl ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:171:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:197:5'): Expanding AMT within a covariate ──────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:197:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:206:5'): as.fun ────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = 10) at test_NMcreateDoses.R:206:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:219:5'): data.frames accepted ──────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_NMcreateDoses.R:219:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:227:5'): col.id ────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = 10, col.id = "NOOOO") at test_NMcreateDoses.R:227:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:242:5'): covs in multiple arguments ────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = dt.time, AMT = dt.amt) at test_NMcreateDoses.R:242:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:267:5'): Suppress EVID ─────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = 1, EVID = NULL) at test_NMcreateDoses.R:267:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:277:5'): length(TIME)=3 and length(ADDL)=1 ─────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 2, 4), AMT = 1, ADDL = 4, II = 12) at test_NMcreateDoses.R:277:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateDoses.R:287:5'): Basic with N>1 ────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = 10, N = 3) at test_NMcreateDoses.R:287:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateMatLines.R:14:5'): basic ───────────────────────────────
  Error in ``[.data.table`(pars, get(col.par.type) %in% allpars.mat, `:=`(j, as.integer(sub(pattern = sprintf("%s\\(([0-9]+)\\,([0-9]+)\\)", get(col.par.type)), replacement = "\\2", x = get(col.parameter)))), by = row)`: attempt access index 16/16 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMreadExt(file.mod) at test_NMcreateMatLines.R:14:5
   2.   └─NMdata:::addParType(pars)
   3.     ├─...[]
   4.     └─data.table:::`[.data.table`(...)
  ── Error ('test_NMcreateMatLines.R:40:5'): Fixed block ─────────────────────────
  Error in ``[.data.table`(pars, get(col.par.type) %in% allpars.mat, `:=`(j, as.integer(sub(pattern = sprintf("%s\\(([0-9]+)\\,([0-9]+)\\)", get(col.par.type)), replacement = "\\2", x = get(col.parameter)))), by = row)`: attempt access index 16/16 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMreadExt(file.mod, as.fun = "data.table") at test_NMcreateMatLines.R:40:5
   2.   └─NMdata:::addParType(pars)
   3.     ├─...[]
   4.     └─data.table:::`[.data.table`(...)
  ── Error ('test_NMreadParsWide.R:16:5'): basic ─────────────────────────────────
  Error in ``[.data.table`(pars.l, , `:=`((c("i", "j")), deriveCols(name.wide, n = 2)), by = c(col.model, col.model.sim, "name.wide"))`: attempt access index 5/5 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::readParsWide(parsWide) at test_NMreadParsWide.R:16:5
   2.   ├─...[]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMreadSim.R:30:1'): (code run outside of `test_that()`) ────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = dt.amt, as.fun = "data.table") at test_NMreadSim.R:30:1
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMseed.R:13:5'): basic ─────────────────────────────────────────
  Error in ``[.data.table`(values, , `:=`(string, paste(paste0("(", unlist(.SD), " ", dist, ")"), collapse = " ")), by = .(nsim))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim:::NMseed(...) at test_NMseed.R:13:5
   2.   ├─...[]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMseed.R:31:5'): manually provided values ──────────────────────
  Error in ``[.data.table`(values, , `:=`(string, paste(paste0("(", unlist(.SD), " ", dist, ")"), collapse = " ")), by = .(nsim))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim:::NMseed(...) at test_NMseed.R:31:5
   2.   ├─...[]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMseed.R:44:5'): Only one value per source ─────────────────────
  Error in ``[.data.table`(values, , `:=`(string, paste(paste0("(", unlist(.SD), " ", dist, ")"), collapse = " ")), by = .(nsim))`: attempt access index 3/3 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim:::NMseed(...) at test_NMseed.R:44:5
   2.   ├─...[]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMseed.R:62:5'): basic ─────────────────────────────────────────
  Error in ``[.data.table`(values, , `:=`(string, paste(paste0("(", unlist(.SD), " ", dist, ")"), collapse = " ")), by = .(nsim))`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim:::NMseed(models = data.table(1), values = 2) at test_NMseed.R:62:5
   2.   ├─...[]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMsim.R:23:1'): (code run outside of `test_that()`) ────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = dt.amt, as.fun = "data.table") at test_NMsim.R:23:1
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMsim_NWPRI.R:41:1'): (code run outside of `test_that()`) ──────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = dt.amt, as.fun = "data.table") at test_NMsim_NWPRI.R:41:1
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMsim_VarCov.R:23:1'): (code run outside of `test_that()`) ─────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = 0, AMT = dt.amt, as.fun = "data.table") at test_NMsim_VarCov.R:23:1
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:25:5'): Basic ───────────────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(file.mod, `THETA(1)` = list(init = 3), update = FALSE) at test_NMwriteInits.R:25:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:50:5'): Update + value ──────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(file.mod, `THETA(1)` = list(init = 3), update = TRUE) at test_NMwriteInits.R:50:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:75:5'): unfix ───────────────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(file.mod, `OMEGA(1,1)` = list(fix = 0), update = F) at test_NMwriteInits.R:75:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:103:5'): fix a block ────────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(file.mod, `OMEGA(2,2)` = list(fix = 1), update = FALSE) at test_NMwriteInits.R:103:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:125:5'):  modify omega in a block ───────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(file.mod, `OMEGA(2,2)` = list(init = 1)) at test_NMwriteInits.R:125:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:155:5'): comments on parameters ─────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(...) at test_NMwriteInits.R:155:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:186:5'): multiple named lists ───────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(...) at test_NMwriteInits.R:186:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:219:5'): An ext object ──────────────────────────
  Error in ``[.data.table`(pars, get(col.par.type) %in% allpars.mat, `:=`(j, as.integer(sub(pattern = sprintf("%s\\(([0-9]+)\\,([0-9]+)\\)", get(col.par.type)), replacement = "\\2", x = get(col.parameter)))), by = row)`: attempt access index 16/16 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMreadExt(file.mod, as.fun = "data.table") at test_NMwriteInits.R:219:5
   2.   └─NMdata:::addParType(pars)
   3.     ├─...[]
   4.     └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:263:5'): an inits.tab object ────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(file.mod, update = FALSE, inits.tab = inits.tab) at test_NMwriteInits.R:263:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:283:5'): fix multiple ───────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(...) at test_NMwriteInits.R:283:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_NMwriteInits.R:311:5'): IOV with SAME ──────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMwriteInits(file.mod, update = TRUE) at test_NMwriteInits.R:311:5
   2.   └─NMsim:::NMreadInits(...)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:10:5'): Basic ───────────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 2) at test_addEVID2.R:10:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:29:5'): Multiple compartments ───────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_addEVID2.R:29:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:51:5'): compartments with covariates ────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_addEVID2.R:51:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:74:5'): data.frame CMT ──────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1, as.fun = as.data.frame) at test_addEVID2.R:74:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:93:5'): time with covariates ────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:93:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:119:5'): EVID=0 ─────────────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 2) at test_addEVID2.R:119:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:136:5'): time after dose ────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_addEVID2.R:136:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:155:5'): TIME and TAPD ──────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(TIME = c(0, 12), AMT = 10, CMT = 1) at test_addEVID2.R:155:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:173:5'): TAPD with ADDL/II ──────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 1/1 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:173:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:201:5'): simple, more than one id ───────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:201:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:220:5'): TAPD -  covariates on dosing data, not on TAPD ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:220:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:232:5'): TAPD -  covariates on dosing data, and on TAPD ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:232:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:242:5'): all subjects covered ───────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:242:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:250:5'): sampling schemes overlapping into next doses ──
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:250:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:260:5'): sampling at time of doses ──────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:260:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:270:5'): sampling times not unique ──────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:270:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:279:5'): No CMT column ──────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:279:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:291:5'): Providing DV ───────────────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 2/2 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:291:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:317:5'): Unmatched covariates ───────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:317:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:343:5'): Unmatched covariates ───────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:343:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_addEVID2.R:369:5'): Unmatched are not covs ─────────────────────
  Error in ``[.data.table`(combs, , `:=`(Nna, sum(is.na(.SD))), by = col.row)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMcreateDoses(...) at test_addEVID2.R:369:5
   2.   ├─combs[, `:=`(Nna, sum(is.na(.SD))), by = col.row]
   3.   └─data.table:::`[.data.table`(...)
  ── Error ('test_expandCovLists.R:9:5'): basic ──────────────────────────────────
  Error in ``[.data.table`(dt1, grep("^TABLE", as.character(get(cnames[1])), perl = TRUE), `:=`((col.table.name.text), mypaste(.SD)), by = col.row.tmp)`: attempt access index 13/13 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMscanData(file.mod, quiet = TRUE) at test_expandCovLists.R:9:5
   2.   └─NMdata::NMscanTables(...)
   3.     └─NMdata::NMreadTab(...)
   4.       ├─...[]
   5.       └─data.table:::`[.data.table`(...)
  ── Error ('test_expandCovLists.R:29:5'): with categorical ──────────────────────
  Error in ``[.data.table`(dt1, grep("^TABLE", as.character(get(cnames[1])), perl = TRUE), `:=`((col.table.name.text), mypaste(.SD)), by = col.row.tmp)`: attempt access index 13/13 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMscanData(file.mod, quiet = TRUE) at test_expandCovLists.R:29:5
   2.   └─NMdata::NMscanTables(...)
   3.     └─NMdata::NMreadTab(...)
   4.       ├─...[]
   5.       └─data.table:::`[.data.table`(...)
  ── Error ('test_expandCovLists.R:50:5'): labeling ──────────────────────────────
  Error in ``[.data.table`(dt1, grep("^TABLE", as.character(get(cnames[1])), perl = TRUE), `:=`((col.table.name.text), mypaste(.SD)), by = col.row.tmp)`: attempt access index 13/13 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMscanData(file.mod, quiet = TRUE) at test_expandCovLists.R:50:5
   2.   └─NMdata::NMscanTables(...)
   3.     └─NMdata::NMreadTab(...)
   4.       ├─...[]
   5.       └─data.table:::`[.data.table`(...)
  ── Error ('test_expandCovLists.R:73:5'): keep all refs ─────────────────────────
  Error in ``[.data.table`(dt1, grep("^TABLE", as.character(get(cnames[1])), perl = TRUE), `:=`((col.table.name.text), mypaste(.SD)), by = col.row.tmp)`: attempt access index 13/13 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMscanData(file.mod, quiet = TRUE) at test_expandCovLists.R:73:5
   2.   └─NMdata::NMscanTables(...)
   3.     └─NMdata::NMreadTab(...)
   4.       ├─...[]
   5.       └─data.table:::`[.data.table`(...)
  ── Error ('test_genPhiFile.R:15:5'): Basic ─────────────────────────────────────
  Error in ``[.data.table`(dt1, grep("^TABLE", as.character(get(cnames[1])), perl = TRUE), `:=`((col.table.name.text), mypaste(.SD)), by = col.row.tmp)`: attempt access index 4/4 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMreadPhi(file.phi) at test_genPhiFile.R:15:5
   2.   └─base::lapply(...)
   3.     └─NMdata (local) FUN(X[[i]], ...)
   4.       └─NMdata::NMreadTab(...)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_sampleCovs.R:10:5'): basic ─────────────────────────────────────
  Error in ``[.data.table`(dt1, grep("^TABLE", as.character(get(cnames[1])), perl = TRUE), `:=`((col.table.name.text), mypaste(.SD)), by = col.row.tmp)`: attempt access index 13/13 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMdata::NMscanData("testData/nonmem/xgxr134.mod", quiet = TRUE) at test_sampleCovs.R:10:5
   2.   └─NMdata::NMscanTables(...)
   3.     └─NMdata::NMreadTab(...)
   4.       ├─...[]
   5.       └─data.table:::`[.data.table`(...)
  ── Error ('test_simPopEtas.R:20:5'): Basic ─────────────────────────────────────
  Error in ``[.data.table`(pars, get(col.par.type) %in% allpars.mat, `:=`(j, as.integer(sub(pattern = sprintf("%s\\(([0-9]+)\\,([0-9]+)\\)", get(col.par.type)), replacement = "\\2", x = get(col.parameter)))), by = row)`: attempt access index 11/11 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::simPopEtas(file.mod, N = 10, seed = 4) at test_simPopEtas.R:20:5
   2.   └─NMdata::NMreadExt(...)
   3.     └─NMdata:::addParType(pars)
   4.       ├─...[]
   5.       └─data.table:::`[.data.table`(...)
  ── Error ('test_summarizeCovs.R:54:5'): basic ──────────────────────────────────
  Error in ``[.data.table`(modtab, , `:=`(path.lst.read, {     if (is.null(dir.sims)) {         dirSims <- file.path(dirname(path.rds.read), pathSimsFromRes)     }     else {         dirSims <- dir.sims     }     simplePath(file.path(dirSims, relative_path(path.sim.lst, dirSims))) }), by = .(ROWTMP))`: attempt access index 35/35 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMreadSim("testData/simres/xgxr134_forest1_MetaData.rds") at test_summarizeCovs.R:54:5
   2.   └─NMsim:::NMreadSimModTab(...)
   3.     ├─...[]
   4.     └─data.table:::`[.data.table`(...)
  ── Error ('test_summarizeCovs.R:81:5'): zero refs ──────────────────────────────
  Error in ``[.data.table`(modtab, , `:=`(path.lst.read, {     if (is.null(dir.sims)) {         dirSims <- file.path(dirname(path.rds.read), pathSimsFromRes)     }     else {         dirSims <- dir.sims     }     simplePath(file.path(dirSims, relative_path(path.sim.lst, dirSims))) }), by = .(ROWTMP))`: attempt access index 35/35 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim::NMreadSim("testData/simres/xgxr134_forest1_MetaData.rds") at test_summarizeCovs.R:81:5
   2.   └─NMsim:::NMreadSimModTab(...)
   3.     ├─...[]
   4.     └─data.table:::`[.data.table`(...)
  ── Error ('test_typicalize.R:10:5'): basic ─────────────────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim:::typicalize(lines = lines.in) at test_typicalize.R:10:5
   2.   └─NMsim:::NMreadInits(lines = lines, as.fun = "data.table", section = section)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_typicalize.R:31:5'): Priors ────────────────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim:::typicalize(file.mod) at test_typicalize.R:31:5
   2.   └─NMsim:::NMreadInits(lines = lines, as.fun = "data.table", section = section)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  ── Error ('test_typicalize.R:56:5'): zero sigma ────────────────────────────────
  Error in ``[.data.table`(df, , `:=`(Nsameblock, ifelse(any(sameblock != 0), .N - 1, 0)), by = sameblock)`: attempt access index 17/17 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─NMsim:::typicalize(lines = lines.in, section = c("omega", "sigma")) at test_typicalize.R:56:5
   2.   └─NMsim:::NMreadInits(lines = lines, as.fun = "data.table", section = section)
   3.     └─NMsim:::initsToExt(res)
   4.       └─NMsim:::addSameBlocks(pars)
   5.         ├─...[]
   6.         └─data.table:::`[.data.table`(...)
  
  [ FAIL 99 | WARN 0 | SKIP 6 | PASS 28 ]
  Error:
  ! Test failures.
  Execution halted