Running ‘test-all.R’ [36s/48s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("mlfit")
  Loading required package: mlfit
  00:00:00.000049: Converting list structure to data frame
  00:00:00.134207: Using N as count column for CAR.
  00:00:00.000035: Converting list structure to data frame
  00:00:00.056357: Using N as count column for CAR.
  00:00:00.000038: Converting list structure to data frame
  00:00:00.019094: Using N as count column for CAR.
  00:00:00.000039: Converting list structure to data frame
  00:00:00.020335: Using N as count column for CAR.
  00:00:00.000042: Converting list structure to data frame
  00:00:00.019124: Using N as count column for CAR.
  00:00:00.00004: Converting list structure to data frame
  00:00:00.019104: Using N as count column for CAR.
  00:00:00.000041: Converting list structure to data frame
  00:00:00.019477: Using N as count column for CAR.
  00:00:00.000041: Converting list structure to data frame
  00:00:00.024248: Using N as count column for CAR.
  00:00:00.000048: Converting list structure to data frame
  00:00:00.034997: Using N as count column for CAR, DUMMY.
  00:00:00.000039: Converting list structure to data frame
  00:00:00.019551: Using N as count column for CAR, DUMMY.
  00:00:00.00004: Converting list structure to data frame
  00:00:00.020083: Using N as count column for CAR, DUMMY.
  00:00:00.000037: Converting list structure to data frame
  00:00:00.033412: Using N as count column for CAR, DUMMY.
  00:00:00.000044: Converting list structure to data frame
  00:00:00.069999: Using N as count column for DUMMY, CAR.
  00:00:00.000039: Converting list structure to data frame
  00:00:00.040158: Using N as count column for DUMMY, CAR.
  00:00:00.000041: Converting list structure to data frame
  00:00:00.062485: Using N as count column for DUMMY, CAR.
  00:00:00.000048: Converting list structure to data frame
  00:00:00.000045: Converting list structure to data frame
  00:00:00.000041: Converting list structure to data frame
  00:00:00.000037: Converting list structure to data frame
  00:00:00.039984: Using N as count column for DUMMY.
  00:00:00.045276: Using N as count column for DUMMY.
  00:00:00.048259: Using N as count column for CAR.
  00:00:00.000041: Converting list structure to data frame
  00:00:00.016988: Using N as count column for DUMMY.
  00:00:00.022299: Using N as count column for DUMMY.
  00:00:00.025399: Using N as count column for CAR.
  00:00:00.000117: Collecting controls
  00:00:00.002685: Converting to factor
  00:00:00.005035: Checking controls
  00:00:00.009066: Checking group ID column
  00:00:00.000036: Preparing controls
  00:00:00.045057: Splitting
  00:00:00.074101: Splitting (2)
  00:00:00.148281: Transforming weights
  00:00:00.151055: Preparing reference sample (individuals)
  00:00:00.18144: Aggregating
  00:00:00.183928: Merging
  00:00:00.000035: Flattening controls
  00:00:00.002246: Checking controls for conflicts
  00:00:00.2014: Reordering controls
  00:00:00.204113: Checking zero-valued controls
  00:00:00.206074:   No zero-valued controls
  00:00:00.207949: Checking missing observations
  00:00:00.209907: Computing reverse weights map
  00:00:00.213406: Normalizing weights
  00:00:00.215572: Done!
  00:00:00.000089: Collecting controls
  00:00:00.015587: Using individuals as count column for ind.
  00:00:00.017798: Converting to factor
  00:00:00.020375: Checking controls
  Using groups as count column for group.
  00:00:00.023695: Using groups as count column for group.
  Using individuals as count column for ind.
  00:00:00.027094: Using individuals as count column for ind.
  00:00:00.029104: Checking group ID column
  00:00:00.000036: Preparing controls
  00:00:00.065001: Splitting
  00:00:00.09374: Splitting (2)
  00:00:00.105687: Preparing reference sample (groups)
  00:00:00.121832: Transforming weights
  00:00:00.12397: Preparing reference sample (individuals)
  00:00:00.135862: Aggregating
  00:00:00.13822: Merging
  00:00:00.000037: Flattening controls
  00:00:00.002147: Checking controls for conflicts
  00:00:00.145536: Reordering controls
  00:00:00.147995: Checking zero-valued controls
  00:00:00.149885:   No zero-valued controls
  00:00:00.151621: Checking missing observations
  00:00:00.153379: Computing reverse weights map
  00:00:00.15651: Normalizing weights
  00:00:00.15847: Done!
  00:00:00.000084: Collecting controls
  Creating a list of fitting problems by zone
  Creating a list of fitting problems by zone
  Creating a list of fitting problems by zone
  Creating a list of fitting problems by zone
  Creating a list of fitting problems by zone
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-corner.R:3:3): Grand totals only ────────────────────────────────
  Error in `seq_len(chunk$gid)`: argument must be coercible to non-negative integer
  Backtrace:
      █
   1. └─plyr::adply(...) test-corner.R:3:2
   2.   └─plyr::ldply(...)
   3.     └─plyr::llply(...)
   4.       ├─plyr:::loop_apply(n, do.ply)
   5.       └─(function (i) ...
   6.         └─mlfit:::.fun(piece, ...)
   7.           └─base::data.frame(iid = seq_len(chunk$gid), n = chunk$gid) test-corner.R:4:4
  
  [ FAIL 1 | WARN 4 | SKIP 0 | PASS 502 ]
  Error: Test failures
  Execution halted