- using R Under development (unstable) (2025-12-18 r89199)
- using platform: x86_64-pc-linux-gnu
- R was compiled by
Debian clang version 21.1.7 (1)
Debian flang version 21.1.7 (1)
- running under: Debian GNU/Linux forky/sid
- using session charset: UTF-8
- checking for file ‘ctbi/DESCRIPTION’ ... OK
- checking extension type ... Package
- this is package ‘ctbi’ version ‘2.0.5’
- package encoding: UTF-8
- checking CRAN incoming feasibility ... [1s/2s] NOTE
Maintainer: ‘Francois Ritter <ritter.francois@gmail.com>’
Package CITATION file contains call(s) to old-style citEntry(). Please
use bibentry() instead.
- 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 ‘ctbi’ can be installed ... OK
See the install log for details.
- checking package directory ... OK
- checking for future file timestamps ... 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/1s] OK
- checking whether the package can be loaded with stated dependencies ... [0s/1s] OK
- checking whether the package can be unloaded cleanly ... [0s/1s] OK
- checking whether the namespace can be loaded with stated dependencies ... [0s/0s] OK
- checking whether the namespace can be unloaded cleanly ... [0s/1s] OK
- checking loading without being on the library search path ... [0s/1s] 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 ... [8s/12s] OK
- checking Rd files ... [0s/0s] 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 examples ... [1s/1s] ERROR
Running examples in ‘ctbi-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ctbi
> ### Title: ctbi
> ### Aliases: ctbi
>
> ### ** Examples
>
> # example of the contaminated sunspot data
> example1 <- data.frame(year = 1700:1988,sunspot = as.numeric(sunspot.year))
> example1[sample(1:289,30),'sunspot'] <- NA # contaminate data with missing values
> example1[c(5,30,50),'sunspot'] <- c(-50,300,400) # contaminate data with outliers
> example1 <- example1[-(70:100),] # create gap in the data
> bin.period <- 11 # aggregation performed every 11 years (the year is numeric here)
> bin.side <- 1989 # give one side of a bin
> bin.FUN <- 'mean'
> bin.max.f.NA <- 0.2 # maximum of 20% of missing data per bin
> ylim <- c(0,Inf) # negative values are impossible
>
> list.main <- ctbi(example1,bin.period=bin.period,
+ bin.side=bin.side,bin.FUN=bin.FUN,
+ ylim=ylim,bin.max.f.NA=bin.max.f.NA)
Error in `[.data.table`(data0, , `:=`(time.bin, hidd.rel.time(x, seq.bin.side)), :
attempt access index 6/6 in VECTOR_ELT
Calls: ctbi -> [ -> [.data.table
Execution halted
- checking for unstated dependencies in ‘tests’ ... OK
- checking tests ... [2s/2s] ERROR
Running ‘testthat.R’ [1s/2s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(ctbi)
>
> test_check("ctbi")
Saving _problems/test_20211229-15.R
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ]
══ Failed tests ════════════════════════════════════════════════════════════════
── Error ('test_20211229.R:13:1'): (code run outside of `test_that()`) ─────────
Error in ``[.data.table`(data0, , `:=`(time.bin, hidd.rel.time(x, seq.bin.side)), by = index.bin)`: attempt access index 6/6 in VECTOR_ELT
Backtrace:
▆
1. └─ctbi::ctbi(...) at test_20211229.R:13:1
2. ├─data0[, `:=`(time.bin, hidd.rel.time(x, seq.bin.side)), by = index.bin]
3. └─data.table:::`[.data.table`(...)
[ FAIL 1 | WARN 0 | SKIP 0 | PASS 1 ]
Error:
! Test failures.
Execution halted
- checking PDF version of manual ... [4s/6s] OK
- checking HTML version of manual ... [2s/3s] OK
- checking for non-standard things in the check directory ... OK
- DONE
Status: 2 ERRORs, 1 NOTE