CRAN Package Check Results for Maintainer ‘Stéphane Bisinger <bisinger at kof.ethz.ch>’

Last updated on 2025-12-28 03:51:57 CET.

Package ERROR OK
tstools 1 12

Package tstools

Current CRAN status: ERROR: 1, OK: 12

Version: 0.4.4
Check: examples
Result: ERROR Running examples in 'tstools-Ex.R' failed The error most likely occurred in: > ### Name: read_swissdata > ### Title: Read data generated by the Swissdata project > ### Aliases: read_swissdata > > ### ** Examples > > ds_location <- system.file("example_data/ch.seco.css.csv", package = "tstools") > tslist <- read_swissdata(ds_location, "idx_type") Error in `[.data.table`(data_dt, , `:=`(date_zoo = as.numeric(as.yearmon(date)), : attempt access index 3/3 in VECTOR_ELT Calls: read_swissdata -> long_to_ts -> [ -> [.data.table Execution halted Flavor: r-devel-windows-x86_64

Version: 0.4.4
Check: tests
Result: ERROR Running 'testthat.R' [1s] 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/testing-design.html#sec-tests-files-overview > # * https://testthat.r-lib.org/articles/special-files.html > > library(testthat) > library(tstools) Loading required package: zoo Attaching package: 'zoo' The following objects are masked from 'package:base': as.Date, as.Date.numeric > > test_check("tstools") Saving _problems/test-import_helpers-8.R [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] ══ Failed tests ════════════════════════════════════════════════════════════════ ── Error ('test-import_helpers.R:8:3'): wide_to_ts ───────────────────────────── Error in ``[.data.table`(data_dt, , `:=`(date_zoo = as.numeric(as.yearmon(date)), frq = 12), by = series)`: attempt access index 3/3 in VECTOR_ELT Backtrace: ▆ 1. └─tstools::wide_to_ts(df) at test-import_helpers.R:8:3 2. └─tstools::long_to_ts(...) 3. ├─...[] 4. └─data.table:::`[.data.table`(...) [ FAIL 1 | WARN 0 | SKIP 0 | PASS 0 ] 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.