- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc-15 (Debian 15.2.0-11) 15.2.0
GNU Fortran (Debian 15.2.0-11) 15.2.0
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘multilevelcoda/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘multilevelcoda’ version ‘1.3.3’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] OK
- checking package namespace information ... OK
- checking package dependencies ... INFO
Package suggested but not available for checking: ‘cmdstanr’
- checking if this is a source package ... OK
- checking if there is a namespace ... OK
- checking for executable files ... OK
- checking for hidden files and directories ... OK
- checking for portable file names ... OK
- checking for sufficient/correct file permissions ... OK
- checking whether package ‘multilevelcoda’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... OK
- checking ‘build’ directory ... OK
- checking DESCRIPTION meta-information ... OK
- checking top-level files ... OK
- checking for left-over files ... OK
- checking index information ... OK
- checking package subdirectories ... OK
- checking code files for non-ASCII characters ... OK
- checking R files for syntax errors ... OK
- checking whether the package can be loaded ... [6s/7s] OK
- checking whether the package can be loaded with stated dependencies ... [6s/7s] OK
- checking whether the package can be unloaded cleanly ... [5s/6s] OK
- checking whether the namespace can be loaded with stated dependencies ... [5s/7s] OK
- checking whether the namespace can be unloaded cleanly ... [6s/7s] OK
- checking loading without being on the library search path ... [8s/10s] OK
- checking use of S3 registration ... OK
- checking dependencies in R code ... OK
- checking S3 generic/method consistency ... OK
- checking replacement functions ... OK
- checking foreign function calls ... OK
- checking R code for possible problems ... [32s/42s] OK
- checking Rd files ... [0s/1s] OK
- checking Rd metadata ... OK
- checking Rd line widths ... OK
- checking Rd cross-references ... OK
- checking for missing documentation entries ... OK
- checking for code/documentation mismatches ... OK
- checking Rd \usage sections ... OK
- checking Rd contents ... OK
- checking for unstated dependencies in examples ... OK
- checking contents of ‘data’ directory ... OK
- checking data for non-ASCII characters ... [1s/1s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [9s/10s] ERROR
Running examples in ‘multilevelcoda-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: complr
> ### Title: Indices from a (dataset of) Multilevel Composition(s)
> ### Aliases: complr
>
> ### ** Examples
>
> x1 <- complr(data = mcompd,
+ parts = c("TST", "WAKE", "MVPA", "LPA", "SB"),
+ idvar = "ID", total = 1440)
A sequential binary partition (sbp), is required for ilr transform but is not supplied.
A default sbp, which is a pivot balance, will be applied.
Error in `[.data.table`(tmp, , `:=`(paste0("b", v), mean(get(v), na.rm = TRUE)), :
attempt access index 10/10 in VECTOR_ELT
Calls: complr -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [26s/20s] ERROR
Running ‘testthat.R’ [26s/19s]
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: to 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
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [7s/10s] OK
- checking PDF version of manual ... [7s/9s] OK
- checking HTML version of manual ... [3s/5s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs