Last updated on 2025-12-21 23:49:09 CET.
| Package | ERROR | OK |
|---|---|---|
| tstools | 4 | 9 |
Current CRAN status: ERROR: 4, OK: 9
Version: 0.4.4
Check: examples
Result: ERROR
Running examples in ‘tstools-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Version: 0.4.4
Check: tests
Result: ERROR
Running ‘testthat.R’ [1s/2s]
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
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
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
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.4.4
Check: tests
Result: ERROR
Running ‘testthat.R’
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
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc