- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
gcc (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
GNU Fortran (GCC) 15.1.1 20250521 (Red Hat 15.1.1-2)
- running under: Fedora Linux 42 (Workstation Edition)
- using session charset: UTF-8
- using option ‘--no-stop-on-test-error’
- checking for file ‘splitstackshape/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘splitstackshape’ version ‘1.4.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 ‘splitstackshape’ can be installed ... OK
See the install log for details.
- checking package 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 ... NOTE
Problems with news in ‘NEWS.md’:
Cannot extract version info from the following section titles:
Feature Changes
- 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 ... [7s/10s] OK
- checking Rd files ... 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 ... OK
- checking LazyData ... OK
- checking data for ASCII and uncompressed saves ... OK
- checking examples ... ERROR
Running examples in ‘splitstackshape-Ex.R’ failed
The error most likely occurred in:
> ### Name: getanID
> ### Title: Add an "id" Variable to a Dataset
> ### Aliases: getanID
>
> ### ** Examples
>
>
> mydf <- data.frame(IDA = c("a", "a", "a", "b", "b"),
+ IDB = c(1, 1, 1, 1, 1), values = 1:5)
> mydf
IDA IDB values
1 a 1 1
2 a 1 2
3 a 1 3
4 b 1 4
5 b 1 5
> getanID(mydf, c("IDA", "IDB"))
Error in `[.data.table`(data, , `:=`(.id, sequence(.N)), by = id.vars) :
attempt access index 3/3 in VECTOR_ELT
Calls: getanID -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... ERROR
Running ‘testthat.R’
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(splitstackshape)
>
> test_check("splitstackshape")
Saving _problems/test_listCols-16.R
Saving _problems/test_stratified-16.R
[ FAIL 2 | WARN 7 | SKIP 0 | PASS 42 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_listCols.R:16:3'): correct dims are returned ───────────────────
Error in ``[.data.table`(data, , `:=`(.id, sequence(.N)), by = id.vars)`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(dim(getanID(mydf, "IDA")), c(5, 4)) at test_listCols.R:16:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. └─splitstackshape::getanID(mydf, "IDA")
5. ├─data[, `:=`(.id, sequence(.N)), by = id.vars]
6. └─data.table:::`[.data.table`(...)
── Error ('test_stratified.R:16:3'): stratified returns the expected number of rows ──
Error in ``[.data.table`(samp_sizes, , `:=`(ss, min(N, size)), by = group)`: attempt access index 3/3 in VECTOR_ELT
Backtrace:
▆
1. ├─testthat::expect_equal(...) at test_stratified.R:16:3
2. │ └─testthat::quasi_label(enquo(object), label)
3. │ └─rlang::eval_bare(expr, quo_get_env(quo))
4. ├─base::nrow(stratified(DF, group = 5, size = 5))
5. └─splitstackshape::stratified(DF, group = 5, size = 5)
6. └─splitstackshape:::s_n(indt, group, size)
7. ├─samp_sizes[, `:=`(ss, min(N, size)), by = group]
8. └─data.table:::`[.data.table`(...)
[ FAIL 2 | WARN 7 | SKIP 0 | PASS 42 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [8s/11s] OK
- checking HTML version of manual ... OK
- checking for non-standard things in the check directory ... OK
- checking for detritus in the temp directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE