Running ‘test-all.R’ [22s/36s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > 
  > test_check("mlfit")
  Loading required package: mlfit
  00:00:00.000027: Converting list structure to data frame
  00:00:00.066462: Using N as count column for CAR.
  00:00:00.000031: Converting list structure to data frame
  00:00:00.030496: Using N as count column for CAR.
  00:00:00.000029: Converting list structure to data frame
  00:00:00.01335: Using N as count column for CAR.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.028075: Using N as count column for CAR.
  00:00:00.000031: Converting list structure to data frame
  00:00:00.028295: Using N as count column for CAR.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.020552: Using N as count column for CAR.
  00:00:00.000027: Converting list structure to data frame
  00:00:00.012757: Using N as count column for CAR.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.011853: Using N as count column for CAR.
  00:00:00.000025: Converting list structure to data frame
  00:00:00.028566: Using N as count column for CAR, DUMMY.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.028238: Using N as count column for CAR, DUMMY.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.029205: Using N as count column for CAR, DUMMY.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.039995: Using N as count column for CAR, DUMMY.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.028378: Using N as count column for DUMMY, CAR.
  00:00:00.000023: Converting list structure to data frame
  00:00:00.014567: Using N as count column for DUMMY, CAR.
  00:00:00.000025: Converting list structure to data frame
  00:00:00.012729: Using N as count column for DUMMY, CAR.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.000029: Converting list structure to data frame
  00:00:00.000034: Converting list structure to data frame
  00:00:00.000025: Converting list structure to data frame
  00:00:00.028221: Using N as count column for DUMMY.
  00:00:00.032182: Using N as count column for DUMMY.
  00:00:00.034438: Using N as count column for CAR.
  00:00:00.000026: Converting list structure to data frame
  00:00:00.027449: Using N as count column for DUMMY.
  00:00:00.031219: Using N as count column for DUMMY.
  00:00:00.033395: Using N as count column for CAR.
  00:00:00.000072: Collecting controls
  00:00:00.00184: Converting to factor
  00:00:00.003403: Checking controls
  00:00:00.037882: Checking group ID column
  00:00:00.000025: Preparing controls
  00:00:00.061972: Splitting
  00:00:00.084909: Splitting (2)
  00:00:00.126698: Transforming weights
  00:00:00.128177: Preparing reference sample (individuals)
  00:00:00.146485: Aggregating
  00:00:00.148276: Merging
  00:00:00.000026: Flattening controls
  00:00:00.001482: Checking controls for conflicts
  00:00:00.159765: Reordering controls
  00:00:00.161442: Checking zero-valued controls
  00:00:00.162515:   No zero-valued controls
  00:00:00.163574: Checking missing observations
  00:00:00.164699: Computing reverse weights map
  00:00:00.166923: Normalizing weights
  00:00:00.168143: Done!
  00:00:00.000064: Collecting controls
  00:00:00.030045: Using individuals as count column for ind.
  00:00:00.031662: Converting to factor
  00:00:00.033587: Checking controls
  Using groups as count column for group.
  00:00:00.052278: Using groups as count column for group.
  Using individuals as count column for ind.
  00:00:00.054858: Using individuals as count column for ind.
  00:00:00.056302: Checking group ID column
  00:00:00.000025: Preparing controls
  00:00:00.086477: Splitting
  00:00:00.122862: Splitting (2)
  00:00:00.146696: Preparing reference sample (groups)
  00:00:00.158482: Transforming weights
  00:00:00.160092: Preparing reference sample (individuals)
  00:00:00.169415: Aggregating
  00:00:00.171121: Merging
  00:00:00.000026: Flattening controls
  00:00:00.001475: Checking controls for conflicts
  00:00:00.176255: Reordering controls
  00:00:00.177881: Checking zero-valued controls
  00:00:00.179061:   No zero-valued controls
  00:00:00.204106: Checking missing observations
  00:00:00.205328: Computing reverse weights map
  00:00:00.207434: Normalizing weights
  00:00:00.208784: Done!
  00:00:00.000064: 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