Skip to content

tsbox

Class-Agnostic Time Series

v0.4.2 · Oct 22, 2024 · GPL-3

Description

Time series toolkit with identical behavior for all time series classes: 'ts','xts', 'data.frame', 'data.table', 'tibble', 'zoo', 'timeSeries', 'tsibble', 'tis' or 'irts'. Also converts reliably between these classes.

Downloads

2.4K

Last 30 days

2754th

6.9K

Last 90 days

35.8K

Last year

Trend: -2% (30d vs prior 30d)

CRAN Check Status

3 ERROR
1 NOTE
10 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang NOTE
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 ERROR
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 ERROR
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 ERROR
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK
Check details (4 non-OK)
NOTE r-devel-linux-x86_64-debian-clang

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [144s/40s]
Running R code in ‘testthat.R’ had CPU time 3.6 times elapsed time
ERROR r-devel-macos-arm64

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [23s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("tsbox")
  Starting 2 test processes.
  > test-arithmetic.R: 
  > test-arithmetic.R: Attaching package: 'dplyr'
  > test-arithmetic.R: 
  > test-arithmetic.R: The following objects are masked from 'package:stats':
  > test-arithmetic.R: 
  > test-arithmetic.R:     filter, lag
  > test-arithmetic.R: 
  > test-arithmetic.R: The following objects are masked from 'package:base':
  > test-arithmetic.R: 
  > test-arithmetic.R:     intersect, setdiff, setequal, union
  > test-arithmetic.R: 
  > test-auto.R: zooreg
  > test-auto.R: Loading required namespace: xts
  > test-au
...[truncated]...
8] 
   [9] "2000-01-01 00:02:16" - "2000-01-01 00:04:13" [9] 
  [10] "2000-01-01 00:02:33" - "2000-01-01 00:04:30" [10]
  
  ── Failure ('test-high_freq.R:119:3'): non regular high frequency data works ───
  Expected `x` to equal `ts_df(ts_ts(x))`.
  Differences:
       actual$time           | expected$time             
   [1] "2000-01-01 00:00:00" - "2000-01-01 00:01:58" [1] 
   [2] "2000-01-01 00:17:00" - "2000-01-01 00:18:55" [2] 
   [3] "2000-01-01 00:34:00" - "2000-01-01 00:35:52" [3] 
   [4] "2000-01-01 00:51:00" - "2000-01-01 00:52:49" [4] 
   [5] "2000-01-01 01:08:00" - "2000-01-01 01:09:46" [5] 
   [6] "2000-01-01 01:25:00" - "2000-01-01 01:26:44" [6] 
   [7] "2000-01-01 01:42:00" - "2000-01-01 01:43:41" [7] 
   [8] "2000-01-01 01:59:00" - "2000-01-01 02:00:38" [8] 
   [9] "2000-01-01 02:16:00" - "2000-01-01 02:17:35" [9] 
  [10] "2000-01-01 02:33:00" - "2000-01-01 02:34:32" [10]
  
  
  [ FAIL 12 | WARN 126 | SKIP 17 | PASS 640 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-oldrel-macos-arm64

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [67s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("tsbox")
  Starting 2 test processes.
  > test-arithmetic.R: 
  > test-arithmetic.R: Attaching package: 'dplyr'
  > test-arithmetic.R: 
  > test-arithmetic.R: The following objects are masked from 'package:stats':
  > test-arithmetic.R: 
  > test-arithmetic.R:     filter, lag
  > test-arithmetic.R: 
  > test-arithmetic.R: The following objects are masked from 'package:base':
  > test-arithmetic.R: 
  > test-arithmetic.R:     intersect, setdiff, setequal, union
  > test-arithmetic.R: 
  > test-auto.R: zooreg
  > test-auto.R: Loading required namespace: xts
  > test-au
...[truncated]...
8] 
   [9] "2000-01-01 00:02:16" - "2000-01-01 00:04:13" [9] 
  [10] "2000-01-01 00:02:33" - "2000-01-01 00:04:30" [10]
  
  ── Failure ('test-high_freq.R:119:3'): non regular high frequency data works ───
  Expected `x` to equal `ts_df(ts_ts(x))`.
  Differences:
       actual$time           | expected$time             
   [1] "2000-01-01 00:00:00" - "2000-01-01 00:01:58" [1] 
   [2] "2000-01-01 00:17:00" - "2000-01-01 00:18:55" [2] 
   [3] "2000-01-01 00:34:00" - "2000-01-01 00:35:52" [3] 
   [4] "2000-01-01 00:51:00" - "2000-01-01 00:52:49" [4] 
   [5] "2000-01-01 01:08:00" - "2000-01-01 01:09:46" [5] 
   [6] "2000-01-01 01:25:00" - "2000-01-01 01:26:44" [6] 
   [7] "2000-01-01 01:42:00" - "2000-01-01 01:43:41" [7] 
   [8] "2000-01-01 01:59:00" - "2000-01-01 02:00:38" [8] 
   [9] "2000-01-01 02:16:00" - "2000-01-01 02:17:35" [9] 
  [10] "2000-01-01 02:33:00" - "2000-01-01 02:34:32" [10]
  
  
  [ FAIL 12 | WARN 126 | SKIP 17 | PASS 640 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-macos-arm64

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [31s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is masked from 'package:testthat':
  
      matches
  
  The following objects are masked from 'package:stats':
  
      filter, lag
  
  The following objects are masked from 'package:base':
  
      intersect, setdiff, setequal, union
  
  > 
  > test_check("tsbox")
  Starting 2 test processes
  [ FAIL 12 | WARN 126 | SKIP 17 | PASS 640 ]
  
  ══ Skipped tests (17) ══════════════════════════════════════════════════════════
  • On CRAN (17): 'test-error_handling.R:237:3', 'test-object_conversion.R:6:3',
    'test-object_conversion.R:47:3', 'test-object_conversion.R:83:3',
    'test-object_conversion.R:114:3', 'test-object_conversion.R:151:3',
    'test-readme.R:2:3', 'test-nonstandard_cnames.R:20:3',
    'test-nonstandard_cnames.R:58:3', 'test-
...[truncated]...
:56" [8] 
   [9] "2000-01-01 00:02:16" - "2000-01-01 00:04:13" [9] 
  [10] "2000-01-01 00:02:33" - "2000-01-01 00:04:30" [10]
  ── Failure ('test-high_freq.R:119:3'): non regular high frequency data works ───
  `x` (`actual`) not equal to ts_df(ts_ts(x)) (`expected`).
  
       actual$time           | expected$time             
   [1] "2000-01-01 00:00:00" - "2000-01-01 00:01:58" [1] 
   [2] "2000-01-01 00:17:00" - "2000-01-01 00:18:55" [2] 
   [3] "2000-01-01 00:34:00" - "2000-01-01 00:35:52" [3] 
   [4] "2000-01-01 00:51:00" - "2000-01-01 00:52:49" [4] 
   [5] "2000-01-01 01:08:00" - "2000-01-01 01:09:46" [5] 
   [6] "2000-01-01 01:25:00" - "2000-01-01 01:26:44" [6] 
   [7] "2000-01-01 01:42:00" - "2000-01-01 01:43:41" [7] 
   [8] "2000-01-01 01:59:00" - "2000-01-01 02:00:38" [8] 
   [9] "2000-01-01 02:16:00" - "2000-01-01 02:17:35" [9] 
  [10] "2000-01-01 02:33:00" - "2000-01-01 02:34:32" [10]
  
  [ FAIL 12 | WARN 126 | SKIP 17 | PASS 640 ]
  Error: Test failures
  Execution halted

Check History

ERROR 10 OK · 1 NOTE · 0 WARNING · 3 ERROR · 0 FAILURE Mar 10, 2026
NOTE r-devel-linux-x86_64-debian-clang

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [147s/41s]
Running R code in ‘testthat.R’ had CPU time 3.6 times elapsed time
ERROR r-devel-macos-arm64

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [19s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are 
...[truncated]...
59:00" - "2000-01-01 02:00:38" [8] 
   [9] "2000-01-01 02:16:00" - "2000-01-01 02:17:35" [9] 
  [10] "2000-01-01 02:33:00" - "2000-01-01 02:34:32" [10]
  
  
  [ FAIL 12 | WARN 126 | SKIP 17 | PASS 640 ]
  Error:
  ! Test failures.
  Execution halted
ERROR r-release-macos-arm64

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [31s/22s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following object is ma
...[truncated]...
1-01 01:59:00" - "2000-01-01 02:00:38" [8] 
   [9] "2000-01-01 02:16:00" - "2000-01-01 02:17:35" [9] 
  [10] "2000-01-01 02:33:00" - "2000-01-01 02:34:32" [10]
  
  [ FAIL 12 | WARN 126 | SKIP 17 | PASS 640 ]
  Error: Test failures
  Execution halted
ERROR r-oldrel-macos-arm64

tests

Running ‘spelling.R’ [0s/0s]
  Running ‘testthat.R’ [66s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > library(dplyr)
  
  Attaching package: 'dplyr'
  
  The following objects are 
...[truncated]...
59:00" - "2000-01-01 02:00:38" [8] 
   [9] "2000-01-01 02:16:00" - "2000-01-01 02:17:35" [9] 
  [10] "2000-01-01 02:33:00" - "2000-01-01 02:34:32" [10]
  
  
  [ FAIL 12 | WARN 126 | SKIP 17 | PASS 640 ]
  Error:
  ! Test failures.
  Execution halted

Reverse Dependencies (9)

depends

Dependency Network

Dependencies Reverse dependencies data.table anytime disagmethod bridgr fable.ata trendseries tssim RplotterPkg reviser tempdisagg tsBSS tsbox

Version History

new 0.4.2 Mar 10, 2026
updated 0.4.2 ← 0.4.1 diff Oct 21, 2024
updated 0.4.1 ← 0.4 diff May 7, 2023
updated 0.4 ← 0.3.1 diff Mar 7, 2023
updated 0.3.1 ← 0.3.0 diff Sep 15, 2021
updated 0.3.0 ← 0.2.1 diff Jul 28, 2021
updated 0.2.1 ← 0.2.0 diff Apr 28, 2020
updated 0.2.0 ← 0.1.0 diff Aug 5, 2019
updated 0.1.0 ← 0.0.3 diff Apr 2, 2019
updated 0.0.3 ← 0.0.2 diff Jun 17, 2018
new 0.0.2 May 13, 2018