Running ‘testthat.R’ [134s/143s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > library(collapse)
  collapse 1.3.0, see ?`collapse-package` or ?`collapse-documentation`
  Note: stats::D  ->  D.expression, D.call
  
  Attaching package: 'collapse'
  
  The following object is masked from 'package:stats':
  
      D
  
  > 
  > test_check("collapse")
  ── 1. Failure: fmode performs like fmode with weights all equal (@test-fmode.R#2
  fmode(x, f, na.rm = FALSE, ties = t) not equal to fmode(x, f, rep(5.88, 100), na.rm = FALSE, ties = t).
  1/10 mismatches
  [5] 3 - 7 == -4
  
  ── 2. Failure: fmode performs like fmode with weights all equal (@test-fmode.R#2
  fmode(m, g, na.rm = FALSE, ties = t) not equal to fmode(m, g, rep(1e-04, l), na.rm = FALSE, ties = t).
  5/30 mismatches (average diff: 20)
  [6]  2000 - 1980 == 20
  [7]  2000 - 1980 == 20
  [8]  2000 - 1980 == 20
  [9]  2000 - 1980 == 20
  [10] 2000 - 1980 == 20
  
  ── 3. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fs
  fvar(m, g, stable.algo = FALSE) not equal to BY(m, g, var, na.rm = TRUE).
  4/77 mismatches (average diff: NaN)
  [15]  Inf - NA == NA
  [29] -Inf - NA == NA
  [36] -Inf - NA == NA
  [43]  Inf - NA == NA
  
  ── 4. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fs
  fvar(m, g, na.rm = FALSE, stable.algo = FALSE) not equal to BY(m, g, var).
  4/77 mismatches (average diff: NaN)
  [15]  Inf - NA == NA
  [29] -Inf - NA == NA
  [36] -Inf - NA == NA
  [43]  Inf - NA == NA
  
  ── 5. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fs
  fvar(mNA, g, na.rm = FALSE, stable.algo = FALSE) not equal to BY(mNA, g, var).
  4/77 mismatches (average diff: NaN)
  [15]  Inf - NA == NA
  [29] -Inf - NA == NA
  [36] -Inf - NA == NA
  [43]  Inf - NA == NA
  
  ── 6. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fs
  fvar(mNA, g, stable.algo = FALSE) not equal to BY(mNA, g, var, na.rm = TRUE).
  6/77 mismatches (average diff: NaN)
  [15]  Inf - NA == NA
  [29] -Inf - NA == NA
  [36] -Inf - NA == NA
  [42]  Inf - NA == NA
  [43]  Inf - NA == NA
  [49]  Inf - NA == NA
  
  ── 7. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fs
  fvar(mtcars, g, stable.algo = FALSE) not equal to BY(mtcars, g, var, na.rm = TRUE).
  Component "disp": 'is.NA' value mismatch: 1 in current 0 in target
  Component "drat": 'is.NA' value mismatch: 1 in current 0 in target
  Component "wt": 'is.NA' value mismatch: 1 in current 0 in target
  Component "qsec": 'is.NA' value mismatch: 1 in current 0 in target
  
  ── 8. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fs
  fvar(mtcars, g, na.rm = FALSE, stable.algo = FALSE) not equal to BY(mtcars, g, var).
  Component "disp": 'is.NA' value mismatch: 1 in current 0 in target
  Component "drat": 'is.NA' value mismatch: 1 in current 0 in target
  Component "wt": 'is.NA' value mismatch: 1 in current 0 in target
  Component "qsec": 'is.NA' value mismatch: 1 in current 0 in target
  
  ── 9. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fs
  fvar(mtcNA, g, na.rm = FALSE, stable.algo = FALSE) not equal to BY(mtcNA, g, var).
  Component "disp": 'is.NA' value mismatch: 2 in current 1 in target
  Component "drat": 'is.NA' value mismatch: 4 in current 3 in target
  Component "wt": 'is.NA' value mismatch: 4 in current 3 in target
  Component "qsec": 'is.NA' value mismatch: 4 in current 3 in target
  
  ── 10. Failure: fvar with direct algorithm performs like base::var (@test-fvar-f
  fvar(mtcNA, g, stable.algo = FALSE) not equal to BY(mtcNA, g, var, na.rm = TRUE).
  Component "disp": 'is.NA' value mismatch: 1 in current 0 in target
  Component "drat": 'is.NA' value mismatch: 1 in current 0 in target
  Component "wt": 'is.NA' value mismatch: 2 in current 0 in target
  Component "qsec": 'is.NA' value mismatch: 2 in current 0 in target
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 7752 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 10 ]
  1.  Failure: fmode performs like fmode with weights all equal (@test-fmode.R#216) 
  2.  Failure: fmode performs like fmode with weights all equal (@test-fmode.R#220) 
  3.  Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#424) 
  4.  Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#425) 
  5.  Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#426) 
  6.  Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#427) 
  7.  Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#428) 
  8.  Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#429) 
  9.  Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#430) 
  10. Failure: fvar with direct algorithm performs like base::var (@test-fvar-fsd.R#431) 
  
  Error: testthat unit tests failed
  Execution halted