Last updated on 2025-12-28 05:50:37 CET.
| Package | ERROR | NOTE | OK |
|---|---|---|---|
| ctbi | 1 | 2 | 10 |
Current CRAN status: ERROR: 1, NOTE: 2, OK: 10
Version: 2.0.5
Check: CRAN incoming feasibility
Result: NOTE
Maintainer: ‘Francois Ritter <ritter.francois@gmail.com>’
Package CITATION file contains call(s) to old-style citEntry(). Please
use bibentry() instead.
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 2.0.5
Check: examples
Result: ERROR
Running examples in 'ctbi-Ex.R' failed
The error most likely occurred in:
> ### 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
Flavor: r-devel-windows-x86_64
Version: 2.0.5
Check: tests
Result: ERROR
Running 'testthat.R' [1s]
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
Flavor: r-devel-windows-x86_64
These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.