Running ‘test-all.R’ [37s/46s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("mlfit")
  Loading required package: mlfit
  00:00:00.000051: Converting list structure to data frame
  00:00:00.061383: Using N as count column for CAR.
  00:00:00.000049: Converting list structure to data frame
  00:00:00.02123: Using N as count column for CAR.
  00:00:00.000046: Converting list structure to data frame
  00:00:00.023259: Using N as count column for CAR.
  00:00:00.000042: Converting list structure to data frame
  00:00:00.044641: Using N as count column for CAR.
  00:00:00.000039: Converting list structure to data frame
  00:00:00.03203: Using N as count column for CAR.
  00:00:00.000034: Converting list structure to data frame
  00:00:00.017967: Using N as count column for CAR.
  00:00:00.000037: Converting list structure to data frame
  00:00:00.019728: Using N as count column for CAR.
  00:00:00.000039: Converting list structure to data frame
  00:00:00.019355: Using N as count column for CAR.
  00:00:00.000048: Converting list structure to data frame
  00:00:00.035494: Using N as count column for CAR, DUMMY.
  00:00:00.000038: Converting list structure to data frame
  00:00:00.021403: Using N as count column for CAR, DUMMY.
  00:00:00.000053: Converting list structure to data frame
  00:00:00.020352: Using N as count column for CAR, DUMMY.
  00:00:00.000038: Converting list structure to data frame
  00:00:00.032955: Using N as count column for CAR, DUMMY.
  00:00:00.000049: Converting list structure to data frame
  00:00:00.040631: Using N as count column for DUMMY, CAR.
  00:00:00.000056: Converting list structure to data frame
  00:00:00.028064: Using N as count column for DUMMY, CAR.
  00:00:00.000037: Converting list structure to data frame
  00:00:00.036146: Using N as count column for DUMMY, CAR.
  00:00:00.000043: Converting list structure to data frame
  00:00:00.000037: Converting list structure to data frame
  00:00:00.000038: Converting list structure to data frame
  00:00:00.000042: Converting list structure to data frame
  00:00:00.020247: Using N as count column for DUMMY.
  00:00:00.026577: Using N as count column for DUMMY.
  00:00:00.030272: Using N as count column for CAR.
  00:00:00.000046: Converting list structure to data frame
  00:00:00.020209: Using N as count column for DUMMY.
  00:00:00.02588: Using N as count column for DUMMY.
  00:00:00.029207: Using N as count column for CAR.
  00:00:00.000137: Collecting controls
  00:00:00.002845: Converting to factor
  00:00:00.00539: Checking controls
  00:00:00.010126: Checking group ID column
  00:00:00.00004: Preparing controls
  00:00:00.048225: Splitting
  00:00:00.079129: Splitting (2)
  00:00:00.138121: Transforming weights
  00:00:00.140506: Preparing reference sample (individuals)
  00:00:00.170568: Aggregating
  00:00:00.173261: Merging
  00:00:00.000034: Flattening controls
  00:00:00.00219: Checking controls for conflicts
  00:00:00.190456: Reordering controls
  00:00:00.19321: Checking zero-valued controls
  00:00:00.195117:   No zero-valued controls
  00:00:00.196874: Checking missing observations
  00:00:00.198745: Computing reverse weights map
  00:00:00.202312: Normalizing weights
  00:00:00.20454: Done!
  00:00:00.000093: Collecting controls
  00:00:00.016902: Using individuals as count column for ind.
  00:00:00.019288: Converting to factor
  00:00:00.022108: Checking controls
  Using groups as count column for group.
  00:00:00.025694: Using groups as count column for group.
  Using individuals as count column for ind.
  00:00:00.02943: Using individuals as count column for ind.
  00:00:00.031738: Checking group ID column
  00:00:00.000039: Preparing controls
  00:00:00.061938: Splitting
  00:00:00.094731: Splitting (2)
  00:00:00.110734: Preparing reference sample (groups)
  00:00:00.138339: Transforming weights
  00:00:00.142203: Preparing reference sample (individuals)
  00:00:00.161263: Aggregating
  00:00:00.16467: Merging
  00:00:00.000042: Flattening controls
  00:00:00.002478: Checking controls for conflicts
  00:00:00.173225: Reordering controls
  00:00:00.175726: Checking zero-valued controls
  00:00:00.177619:   No zero-valued controls
  00:00:00.179472: Checking missing observations
  00:00:00.181427: Computing reverse weights map
  00:00:00.184778: Normalizing weights
  00:00:00.186858: Done!
  00:00:00.000089: 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