- using R Under development (unstable) (2025-12-19 r89206)
- 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 ‘webtrackR/DESCRIPTION’ ... OK
- this is package ‘webtrackR’ version ‘0.3.1’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [2s/2s] 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 ‘webtrackR’ 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 ... [0s/0s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the package can be unloaded cleanly ... [0s/0s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/0s] OK
- checking loading without being on the library search path ... [0s/0s] 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 ... [5s/6s] 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 ... [0s/0s] OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking R/sysdata.rda ... OK
- checking installed files from ‘inst/doc’ ... OK
- checking files in ‘vignettes’ ... OK
- checking examples ... [0s/1s] OK
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [26s/25s] ERROR
Running ‘testthat.R’ [26s/25s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> # This file is part of the standard setup for testthat.
> # It is recommended that you do not modify it.
> #
> # Where should you do additional test configuration?
> # Learn more about the roles of various files in:
> # * https://r-pkgs.org/tests.html
> # * https://testthat.r-lib.org/reference/test_package.html#special-files
>
> library(testthat)
> library(webtrackR)
>
> test_check("webtrackR")
Saving _problems/test-preprocess-4.R
Saving _problems/test-preprocess-45.R
Saving _problems/test-preprocess-67.R
Saving _problems/test-preprocess-74.R
Saving _problems/test-preprocess-93.R
Saving _problems/test-preprocess-102.R
Saving _problems/test-summarize-62.R
Saving _problems/test-summarize-108.R
[ FAIL 8 | WARN 30 | SKIP 7 | PASS 124 ]
══ Skipped tests (7) ═══════════════════════════════════════════════════════════
• On CRAN (7): 'test-classify.R:22:5', 'test-preprocess.R:23:5',
'test-preprocess.R:186:5', 'test-preprocess.R:201:5',
'test-preprocess.R:208:5', 'test-preprocess.R:283:5',
'test-preprocess.R:291:5'
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test-preprocess.R:4:5'): add_duration ───────────────────────────────
Error in ``[.data.table`(wt, , `:=`(duration, as.numeric(data.table::shift(timestamp, n = 1, type = "lead", fill = NA) - timestamp)), by = "panelist_id")`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_duration(wt, cutoff = 300, replace_by = NA) at test-preprocess.R:4:5
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-preprocess.R:45:5'): add_session ───────────────────────────────
Error in ``[.data.table`(wt, , `:=`(tmp_index, 1:.N), by = panelist_id)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_session(wt, cutoff = 1800) at test-preprocess.R:45:5
2. ├─wt[, `:=`(tmp_index, 1:.N), by = panelist_id]
3. └─data.table:::`[.data.table`(wt, , `:=`(tmp_index, 1:.N), by = panelist_id)
── Error ('test-preprocess.R:67:5'): add_session testdt_specific ───────────────
Error in ``[.data.table`(wt, , `:=`(tmp_index, 1:.N), by = panelist_id)`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_session(wt, cutoff = 1800) at test-preprocess.R:67:5
2. ├─wt[, `:=`(tmp_index, 1:.N), by = panelist_id]
3. └─data.table:::`[.data.table`(wt, , `:=`(tmp_index, 1:.N), by = panelist_id)
── Error ('test-preprocess.R:74:5'): deduplicate ───────────────────────────────
Error in ``[.data.table`(wt, , `:=`(duration, as.numeric(data.table::shift(timestamp, n = 1, type = "lead", fill = NA) - timestamp)), by = "panelist_id")`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_duration(wt, cutoff = 300, replace_by = 300) at test-preprocess.R:74:5
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-preprocess.R:93:5'): deduplicate errors ────────────────────────
Error in ``[.data.table`(wt, , `:=`(duration, as.numeric(data.table::shift(timestamp, n = 1, type = "lead", fill = NA) - timestamp)), by = "panelist_id")`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_duration(wt, cutoff = 300, replace_by = 300) at test-preprocess.R:93:5
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-preprocess.R:102:5'): deduplicate testdt_specific ──────────────
Error in ``[.data.table`(wt, , `:=`(duration, as.numeric(data.table::shift(timestamp, n = 1, type = "lead", fill = NA) - timestamp)), by = "panelist_id")`: attempt access index 5/5 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_duration(wt, cutoff = 300, replace_by = 300) at test-preprocess.R:102:5
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-summarize.R:62:5'): sum_durations ──────────────────────────────
Error in ``[.data.table`(wt, , `:=`(duration, as.numeric(data.table::shift(timestamp, n = 1, type = "lead", fill = NA) - timestamp)), by = "panelist_id")`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_duration(wt) at test-summarize.R:62:5
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
── Error ('test-summarize.R:108:5'): sum_durations testdt_specific ─────────────
Error in ``[.data.table`(wt, , `:=`(duration, as.numeric(data.table::shift(timestamp, n = 1, type = "lead", fill = NA) - timestamp)), by = "panelist_id")`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─webtrackR::add_duration(wt) at test-summarize.R:108:5
2. ├─...[]
3. └─data.table:::`[.data.table`(...)
[ FAIL 8 | WARN 30 | SKIP 7 | PASS 124 ]
Error:
! Test failures.
Execution halted
- checking for unstated dependencies in vignettes ... OK
- checking package vignettes ... OK
- checking re-building of vignette outputs ... [2s/2s] OK
- checking PDF version of manual ... [4s/5s] OK
- checking HTML version of manual ... [1s/2s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 1 ERROR