Running ‘testthat.R’ [11s/14s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tsbox)
  > 
  > test_check("tsbox")
  ── 1. Error: df aggregation using date_ functions is working (@test_date_utils.R
  there is no package called 'dplyr'
  1: library(dplyr) at testthat/test_date_utils.R:10
  2: stop(txt, domain = NA)
  
  Failed with error:  'there is no package called 'tibble''
  ── 2. Error: time_shift is working (@test_date_utils.R#49)  ────────────────────
  requireNamespace("tibble") is not TRUE
  1: ts_tbl(ts_c(mdeaths, fdeaths)) at testthat/test_date_utils.R:49
  2: ts_tbl_dts(ts_dts(x))
  3: stopifnot(requireNamespace("tibble"))
  
  ── 3. Error: works with df with improper col classes (@test_dirty.R#8)  ────────
  there is no package called 'dplyr'
  1: library(dplyr) at testthat/test_dirty.R:8
  2: stop(txt, domain = NA)
  
  Failed with error:  'there is no package called 'tibble''
  ── 4. Error: regular non standard series work with NA (@test_non_heuristic.R#10)
  requireNamespace("tibble") is not TRUE
  1: expect_equal(ts_ts(ts_tbl(x0)), x0) at testthat/test_non_heuristic.R:10
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_ts(ts_tbl(x0))
  5: stopifnot(ts_boxable(x))
  6: withCallingHandlers(tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), 
         error = function(e) {
             e$call <- cl.i
             stop(e)
         }), warning = function(w) {
         w$call <- cl.i
         w
     })
  7: tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), error = function(e) {
         e$call <- cl.i
         stop(e)
     })
  8: tryCatchList(expr, classes, parentenv, handlers)
  9: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  10: value[[3L]](cond)
  
  Failed with error:  'there is no package called 'tibble''
  ── 5. Error: main functions work with non standard cnames (@test_nonstandard_cna
  requireNamespace("tibble") is not TRUE
  1: ts_tbl(ts_c(mdeaths, AirPassengers)) at testthat/test_nonstandard_cnames.R:8
  2: ts_tbl_dts(ts_dts(x))
  3: stopifnot(requireNamespace("tibble"))
  
  ── 6. Error: colname guessing works as expected (@test_object_conversion.R#187) 
  there is no package called 'dplyr'
  1: library(dplyr) at testthat/test_object_conversion.R:187
  2: stop(txt, domain = NA)
  
  ── 7. Error: conversions work with multiple ids (@test_object_conversion.R#207) 
  could not find function "bind_rows"
  1: bind_rows(mutate(ts_tbl(ts_c(fdeaths, mdeaths)), id2 = "one"), mutate(ts_tbl(ts_c(fdeaths, 
         mdeaths)), id2 = "two")) %>% ts_df() at testthat/test_object_conversion.R:207
  2: eval(lhs, parent, parent)
  3: eval(lhs, parent, parent)
  
  Failed with error:  'there is no package called 'tibble''
  ── 8. Error: conversion produces right classes for monthly series (@test_subannu
  requireNamespace("tibble") is not TRUE
  1: expect_s3_class(ts_tbl(monthly_series), "tbl_df") at testthat/test_subannual.R:12
  2: quasi_label(enquo(object))
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_tbl(monthly_series)
  5: ts_tbl_dts(ts_dts(x))
  6: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 9. Error: conversion between objects works as expected for monthly series (@t
  requireNamespace("tibble") is not TRUE
  1: ts_tbl(x.dt) at testthat/test_subannual.R:45
  2: ts_tbl_dts(ts_dts(x))
  3: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 10. Error: conversion produces right classes for regular series (@test_subann
  requireNamespace("tibble") is not TRUE
  1: expect_s3_class(ts_tbl(regular_series), "tbl_df") at testthat/test_subannual.R:80
  2: quasi_label(enquo(object))
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_tbl(regular_series)
  5: ts_tbl_dts(ts_dts(x))
  6: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 11. Error: conversion between objects works as expected for regular series (@
  requireNamespace("tibble") is not TRUE
  1: ts_tbl(x.dt) at testthat/test_subannual.R:113
  2: ts_tbl_dts(ts_dts(x))
  3: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 12. Error: conversion produces right classes for quarterly series (@test_suba
  requireNamespace("tibble") is not TRUE
  1: expect_s3_class(ts_tbl(quarter_series), "tbl_df") at testthat/test_subannual.R:148
  2: quasi_label(enquo(object))
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_tbl(quarter_series)
  5: ts_tbl_dts(ts_dts(x))
  6: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 13. Error: conversion between objects works as expected: austres (@test_suban
  requireNamespace("tibble") is not TRUE
  1: ts_tbl(x.dt) at testthat/test_subannual.R:181
  2: ts_tbl_dts(ts_dts(x))
  3: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 14. Error: conversion produces right classes for series with NAs (@test_suban
  requireNamespace("tibble") is not TRUE
  1: expect_s3_class(ts_tbl(irregular_series), "tbl_df") at testthat/test_subannual.R:218
  2: quasi_label(enquo(object))
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_tbl(irregular_series)
  5: ts_tbl_dts(ts_dts(x))
  6: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 15. Error: conversion between objects works as expected for series with NAs (
  requireNamespace("tibble") is not TRUE
  1: ts_tbl(x.dt) at testthat/test_subannual.R:253
  2: ts_tbl_dts(ts_dts(x))
  3: stopifnot(requireNamespace("tibble"))
  
  ── 16. Error: (unknown) (@test_time_conversion.R#4)  ───────────────────────────
  there is no package called 'dplyr'
  1: library(dplyr) at testthat/test_time_conversion.R:4
  2: stop(txt, domain = NA)
  
  ── 17. Error: Unordered time works (@test_tricky.R#66)  ────────────────────────
  there is no package called 'dplyr'
  1: suppressMessages(library(dplyr)) at testthat/test_tricky.R:66
  2: withCallingHandlers(expr, message = function(c) invokeRestart("muffleMessage"))
  3: library(dplyr)
  4: stop(txt, domain = NA)
  
  Failed with error:  'there is no package called 'tibble''
  ── 18. Error: Non unique colnames work fine (@test_tricky.R#81)  ───────────────
  requireNamespace("tibble") is not TRUE
  1: expect_equal(ts_c(mdeaths, EuStockMarkets, ts_tbl(ts_c(mdeaths, EuStockMarkets))), 
         ts_tbl(ts_c(mdeaths, EuStockMarkets, ts_c(mdeaths, EuStockMarkets)))) at testthat/test_tricky.R:81
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_c(mdeaths, EuStockMarkets, ts_tbl(ts_c(mdeaths, EuStockMarkets)))
  5: ts_tbl(ts_c(mdeaths, EuStockMarkets))
  6: ts_tbl_dts(ts_dts(x))
  7: stopifnot(requireNamespace("tibble"))
  
  "blabla"
  Failed with error:  'there is no package called 'tibble''
  ── 19. Error: ts_bind works as it should. (@test_ts_bind.R#23)  ────────────────
  requireNamespace("tibble") is not TRUE
  1: expect_equal(ts_tbl(AirPassengers), ts_bind(AirPassengers = ts_span(ts_tbl(AirPassengers), 
         start = "1950-01-01"), ts_span(ts_tbl(AirPassengers), end = "1949-12-01"))) at testthat/test_ts_bind.R:23
  2: quasi_label(enquo(object), label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_tbl(AirPassengers)
  5: ts_tbl_dts(ts_dts(x))
  6: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 20. Error: ts_chain gives correct results (@test_ts_bind.R#48)  ─────────────
  requireNamespace("tibble") is not TRUE
  1: ts_chain(ts_span(ts_tbl(mdeaths), start = "1975-01-01", end = "1975-12-01"), ts_tbl(fdeaths)) at testthat/test_ts_bind.R:48
  2: ts_span(ts_tbl(mdeaths), start = "1975-01-01", end = "1975-12-01")
  3: ts_dts(x)
  4: ts_tbl(mdeaths)
  5: ts_tbl_dts(ts_dts(x))
  6: stopifnot(requireNamespace("tibble"))
  
  Failed with error:  'there is no package called 'tibble''
  ── 21. Error: deals with true irregular series (@test_ts_irregular.R#14)  ──────
  requireNamespace("tibble") is not TRUE
  1: expect_equal(x, ts_df(ts_tbl(x))) at testthat/test_ts_irregular.R:14
  2: quasi_label(enquo(expected), expected.label)
  3: eval_bare(get_expr(quo), get_env(quo))
  4: ts_df(ts_tbl(x))
  5: ts_data.frame(x)
  6: stopifnot(ts_boxable(x))
  7: withCallingHandlers(tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), 
         error = function(e) {
             e$call <- cl.i
             stop(e)
         }), warning = function(w) {
         w$call <- cl.i
         w
     })
  8: tryCatch(if (missE) ...elt(i) else eval(cl.i, envir = envir), error = function(e) {
         e$call <- cl.i
         stop(e)
     })
  9: tryCatchList(expr, classes, parentenv, handlers)
  10: tryCatchOne(expr, names, parentenv, handlers[[1L]])
  11: value[[3L]](cond)
  
  Failed with error:  'there is no package called 'tibble''
  ── 22. Error: ts_long and ts_wide work both ways. (@test_ts_long_wide.R#16)  ───
  requireNamespace("tibble") is not TRUE
  1: ts_tbl(ts_dt(EuStockMarkets)) at testthat/test_ts_long_wide.R:16
  2: ts_tbl_dts(ts_dts(x))
  3: stopifnot(requireNamespace("tibble"))
  
  ── 23. Error: economics dataset can be converted to long format (@test_ts_long_w
  there is no package called 'ggplot2'
  1: library(ggplot2) at testthat/test_ts_long_wide.R:28
  2: stop(txt, domain = NA)
  
  ── 24. Error: colname guessing works as expected (@test_ts_pc.R#10)  ───────────
  there is no package called 'dplyr'
  1: library(dplyr) at testthat/test_ts_pc.R:10
  2: stop(txt, domain = NA)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 107 SKIPPED: 11 FAILED: 24
  1. Error: df aggregation using date_ functions is working (@test_date_utils.R#10) 
  2. Error: time_shift is working (@test_date_utils.R#49) 
  3. Error: works with df with improper col classes (@test_dirty.R#8) 
  4. Error: regular non standard series work with NA (@test_non_heuristic.R#10) 
  5. Error: main functions work with non standard cnames (@test_nonstandard_cnames.R#8) 
  6. Error: colname guessing works as expected (@test_object_conversion.R#187) 
  7. Error: conversions work with multiple ids (@test_object_conversion.R#207) 
  8. Error: conversion produces right classes for monthly series (@test_subannual.R#12) 
  9. Error: conversion between objects works as expected for monthly series (@test_subannual.R#45) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted