* using log directory ‘/Users/ripley/R/packages/tests-devel/webtrackR.Rcheck’ * using R Under development (unstable) (2025-12-24 r89227) * using platform: aarch64-apple-darwin25.2.0 * R was compiled by Apple clang version 17.0.0 (clang-1700.6.3.2) GNU Fortran (GCC) 14.2.0 * running under: macOS Tahoe 26.2 * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘webtrackR/DESCRIPTION’ ... OK * this is package ‘webtrackR’ version ‘0.3.1’ * package encoding: UTF-8 * 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 * checking installed package size ... OK * checking package directory ... 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 ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... 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 ... OK * checking Rd files ... OK * checking Rd metadata ... 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 ... 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 ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [10s/10s] [10s/11s] ERROR 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-preprocess-250.R Saving _problems/test-preprocess-276.R Saving _problems/test-preprocess-302.R Saving _problems/test-preprocess-321.R Saving _problems/test-summarize-62.R Saving _problems/test-summarize-108.R [ FAIL 12 | WARN 22 | SKIP 7 | PASS 107 ] ══ 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")`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. 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)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. 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)`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. 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")`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. 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")`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. 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")`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. 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-preprocess.R:250:5'): add_next_visit add_previous_visit ──────── Error in ``[.data.table`(wt, , `:=`(url_next, data.table::shift(url, n = 1, type = "lead", fill = NA)), by = "panelist_id")`: This data.table has either been loaded from disk (e.g. using readRDS()/load()) or constructed manually (e.g. using structure()). Please run setDT() or setalloccol() on it first (to pre-allocate space for new columns) before assigning by reference to it. Backtrace: ▆ 1. └─webtrackR::add_next_visit(wt) at test-preprocess.R:250:5 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test-preprocess.R:276:5'): add_next_visit add_previous_visit testdt_specific ── Error in ``[.data.table`(wt, , `:=`(url_next, data.table::shift(url, n = 1, type = "lead", fill = NA)), by = "panelist_id")`: This data.table has either been loaded from disk (e.g. using readRDS()/load()) or constructed manually (e.g. using structure()). Please run setDT() or setalloccol() on it first (to pre-allocate space for new columns) before assigning by reference to it. Backtrace: ▆ 1. └─webtrackR::add_next_visit(wt) at test-preprocess.R:276:5 2. ├─...[] 3. └─data.table:::`[.data.table`(...) ── Error ('test-preprocess.R:302:5'): add_referral ───────────────────────────── Error in ``[.data.table`(wt, , `:=`(domain_previous, data.table::shift(domain, n = 1, type = "lag", fill = NA)), by = "panelist_id")`: This data.table has either been loaded from disk (e.g. using readRDS()/load()) or constructed manually (e.g. using structure()). Please run setDT() or setalloccol() on it first (to pre-allocate space for new columns) before assigning by reference to it. Backtrace: ▆ 1. └─webtrackR::add_referral(...) at test-preprocess.R:302:5 2. └─webtrackR::add_previous_visit(wt, level = "domain") 3. ├─...[] 4. └─data.table:::`[.data.table`(...) ── Error ('test-preprocess.R:321:5'): add_referral testdt_specific ───────────── Error in ``[.data.table`(wt, , `:=`(domain_previous, data.table::shift(domain, n = 1, type = "lag", fill = NA)), by = "panelist_id")`: This data.table has either been loaded from disk (e.g. using readRDS()/load()) or constructed manually (e.g. using structure()). Please run setDT() or setalloccol() on it first (to pre-allocate space for new columns) before assigning by reference to it. Backtrace: ▆ 1. └─webtrackR::add_referral(...) at test-preprocess.R:321:5 2. └─webtrackR::add_previous_visit(wt, level = "domain") 3. ├─...[] 4. └─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")`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. 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")`: Internal error in dogroups: Trying to add new column by reference but tl is full; setalloccol should have run first at R level before getting to this point. Please report to the data.table issues tracker. Backtrace: ▆ 1. └─webtrackR::add_duration(wt) at test-summarize.R:108:5 2. ├─...[] 3. └─data.table:::`[.data.table`(...) [ FAIL 12 | WARN 22 | SKIP 7 | PASS 107 ] Error: ! Test failures. Execution halted * checking for unstated dependencies in vignettes ... OK * checking package vignettes ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... OK * checking HTML version of manual ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR See ‘/Users/ripley/R/packages/tests-devel/webtrackR.Rcheck/00check.log’ for details. 37.16 real 26.41 user 6.54 sys