Running ‘testthat.R’ [45s/33s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(data.table)
  
  Attaching package: 'data.table'
  
  The following object is masked from 'package:base':
  
      %notin%
  
  > library(multilevelcoda)
  
  Attaching package: 'multilevelcoda'
  
  The following object is masked from 'package:base':
  
      sub
  
  > library(extraoperators)
  > library(brms)
  Loading required package: Rcpp
  Loading 'brms' package (version 2.23.0). Useful instructions
  can be found by typing help('brms'). A more detailed introduction
  to the package is available through vignette('brms_overview').
  
  Attaching package: 'brms'
  
  The following object is masked from 'package:stats':
  
      ar
  
  > 
  > test_check("multilevelcoda")
  Starting 2 test processes.
  > test-complr.R: 
  > test-complr.R: Attaching package: 'data.table'
  > test-complr.R: 
  > test-complr.R: The following object is masked from 'package:base':
  > test-complr.R: 
  > test-complr.R:     %notin%
  > test-complr.R: 
  > test-complr.R: Loading required package: Rcpp
  > test-complr.R: Loading 'brms' package (version 2.23.0). Useful instructions
  > test-complr.R: can be found by typing help('brms'). A more detailed introduction
  > test-complr.R: t
  > test-complr.R: o the package is available through vignette('brms_overview').
  > test-complr.R: 
  > test-complr.R: Attaching package: 'brms'
  > test-complr.R: 
  > test-complr.R: The following object is masked from 'package:stats':
  > test-complr.R: 
  > test-complr.R:     ar
  > test-complr.R: 
  > test-complr.R: Loading required package: Matrix
  > test-complr.R: 
  > test-complr.R: Attaching package: 'lme4'
  > test-complr.R: 
  > test-complr.R: The following object is masked from 'package:brms':
  > test-complr.R: 
  > test-complr.R:     ngrps
  > test-complr.R: 
  Saving _problems/test-complr-17.R
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 0 ]
  
  ══ Skipped tests (4) ═══════════════════════════════════════════════════════════
  • On CRAN (4): 'test-brmcoda.R:1:1', 'test-plotcoda.R:1:1',
    'test-substitution.R:1:1', 'test-update.R:1:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-complr.R:16:1'): (code run outside of `test_that()`) ───────────
  Error in ``[.data.table`(tmp, , `:=`(paste0("b", v), mean(get(v), na.rm = TRUE)), by = eval(idvar))`: attempt access index 10/10 in VECTOR_ELT
  Backtrace:
      ▆
   1. └─multilevelcoda::complr(...) at test-complr.R:16:1
   2.   ├─tmp[, `:=`(paste0("b", v), mean(get(v), na.rm = TRUE)), by = eval(idvar)]
   3.   └─data.table:::`[.data.table`(...)
  
  [ FAIL 1 | WARN 0 | SKIP 4 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted