- 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 ‘multilevelTools/DESCRIPTION’ ... OK
- this is package ‘multilevelTools’ version ‘0.2.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/1s] OK
- checking package namespace information ... OK
- checking package dependencies ... OK
- 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 ‘multilevelTools’ 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 ... [5s/6s] OK
- checking whether the package can be loaded with stated dependencies ... [4s/5s] OK
- checking whether the package can be unloaded cleanly ... [4s/5s] OK
- checking whether the namespace can be loaded with stated dependencies ... [5s/6s] OK
- checking whether the namespace can be unloaded cleanly ... [5s/6s] OK
- checking loading without being on the library search path ... [5s/5s] 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 ... [22s/25s] 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 installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [6s/7s] ERROR
Running examples in ‘multilevelTools-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: evaluateLags
> ### Title: Create lag variables and evaluate models with different number
> ### of lags
> ### Aliases: evaluateLags
>
> ### ** Examples
>
> ## these examples are slow to run
> data(aces_daily, package = "JWileymisc")
>
> evaluateLags(
+ "NegAff ~ Female + Age + BornAUS + (1 | UserID)",
+ "STRESS",
+ 4L,
+ "UserID",
+ aces_daily)
Error in `[.data.table`(data, , `:=`((lags), lapply(1:nlags, function(i) lagk(get(lagvar), :
attempt access index 19/19 in VECTOR_ELT
Calls: evaluateLags -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [6s/7s] ERROR
Running ‘testthat.R’ [6s/7s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(multilevelTools)
> library(JWileymisc)
>
> test_check("multilevelTools")
Saving _problems/test-descriptives-2.R
Saving _problems/test-descriptives-19.R
[ FAIL 2 | WARN 0 | SKIP 19 | PASS 45 ]
══ Skipped tests (19) ══════════════════════════════════════════════════════════
• On CRAN (19): 'test-diagnostics.R:2:3', 'test-diagnostics.R:14:3',
'test-diagnostics.R:31:3', 'test-diagnostics.R:50:3',
'test-diagnostics.R:73:3', 'test-diagnostics.R:85:3',
'test-diagnostics.R:100:3', 'test-diagnostics.R:115:3',
'test-diagnostics.R:130:3', 'test-models.R:2:3', 'test-models.R:36:3',
'test-models.R:48:3', 'test-models.R:72:3', 'test-models.R:98:3',
'test-models.R:133:3', 'test-models.R:186:3', 'test-plotting.R:2:3',
'test-plotting.R:22:3', 'test-styler.R:2:3'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-descriptives.R:2:3'): meanDecompose works with one grouping factor ──
Error in ``[.data.table`(data, , `:=`((vname), mean(get(vres), na.rm = TRUE)), by = c(v[2:i]))`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. └─multilevelTools::meanDecompose(mpg ~ cyl, data = mtcars) at test-descriptives.R:2:3
2. ├─data[, `:=`((vname), mean(get(vres), na.rm = TRUE)), by = c(v[2:i])]
3. └─data.table:::`[.data.table`(...)
── Error ('test-descriptives.R:19:3'): meanDecompose works with two grouping factors ──
Error in ``[.data.table`(data, , `:=`((vname), mean(get(vres), na.rm = TRUE)), by = c(v[2:i]))`: attempt access index 4/4 in VECTOR_ELT
Backtrace:
▆
1. └─multilevelTools::meanDecompose(mpg ~ vs + cyl, data = mtcars) at test-descriptives.R:19:3
2. ├─data[, `:=`((vname), mean(get(vres), na.rm = TRUE)), by = c(v[2:i])]
3. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 0 | SKIP 19 | PASS 45 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [6s/9s] ERROR
Error(s) in re-building vignettes:
...
--- re-building ‘lmer-vignette.Rmd’ using rmarkdown
Quitting from lmer-vignette.Rmd:178-191 [unnamed-chunk-6]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<error/rlang_error>
Error in `[.data.table`:
! attempt access index 3/3 in VECTOR_ELT
---
Backtrace:
▆
1. └─multilevelTools::meanDecompose(NegAff ~ UserID, data = aces_daily)
2. ├─data[, `:=`((vname), mean(get(vres), na.rm = TRUE)), by = c(v[2:i])]
3. └─data.table:::`[.data.table`(...)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Error: processing vignette 'lmer-vignette.Rmd' failed with diagnostics:
attempt access index 3/3 in VECTOR_ELT
--- failed re-building ‘lmer-vignette.Rmd’
SUMMARY: processing the following file failed:
‘lmer-vignette.Rmd’
Error: Vignette re-building failed.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 3 ERRORs