Running ‘testthat.R’ [25s/35s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(timetk)
  Loading required package: recipes
  Loading required package: 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
  
  
  Attaching package: 'recipes'
  
  The following object is masked from 'package:stats':
  
      step
  
  > library(tidyverse)
  ── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
  ✔ ggplot2 3.3.0     ✔ purrr   0.3.3
  ✔ tibble  3.0.0     ✔ stringr 1.4.0
  ✔ tidyr   1.0.2     ✔ forcats 0.5.0
  ✔ readr   1.3.1     
  ── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
  ✖ dplyr::filter()  masks stats::filter()
  ✖ stringr::fixed() masks recipes::fixed()
  ✖ purrr::is_null() masks testthat::is_null()
  ✖ dplyr::lag()     masks stats::lag()
  ✖ tidyr::matches() masks dplyr::matches(), testthat::matches()
  > library(tidyquant)
  Loading required package: lubridate
  
  Attaching package: 'lubridate'
  
  The following objects are masked from 'package:dplyr':
  
      intersect, setdiff, union
  
  The following objects are masked from 'package:base':
  
      date, intersect, setdiff, union
  
  Loading required package: PerformanceAnalytics
  Loading required package: xts
  Loading required package: zoo
  
  Attaching package: 'zoo'
  
  The following objects are masked from 'package:base':
  
      as.Date, as.Date.numeric
  
  
  Attaching package: 'xts'
  
  The following objects are masked from 'package:dplyr':
  
      first, last
  
  
  Attaching package: 'PerformanceAnalytics'
  
  The following object is masked from 'package:graphics':
  
      legend
  
  Loading required package: quantmod
  Loading required package: TTR
  Version 0.4-0 included new data defaults. See ?getSymbols.
  ══ Need to Learn tidyquant? ════════════════════════════════════════════════════
  Business Science offers a 1-hour course - Learning Lab #9: Performance Analysis & Portfolio Optimization with tidyquant!
  </> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
  > 
  > # Forecast objects
  > library(forecast)
  > library(robets)
  > library(fracdiff)
  > library(timeDate)
  
  Attaching package: 'timeDate'
  
  The following objects are masked from 'package:PerformanceAnalytics':
  
      kurtosis, skewness
  
  > library(tseries)
  > 
  > test_check("timetk")
  ── 1. Failure: tk_index(ts) test returns correct format. (@test_tk_index.R#38)  
  class(test_index_2) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 2. Failure: tk_index(xts) test returns correct format. (@test_tk_index.R#93) 
  class(test_index_5) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 3. Failure: tk_index(zoo) test returns correct format. (@test_tk_index.R#106)
  class(test_index_6) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 4. Failure: tk_index(decomposed.ts) test returns correct format. (@test_tk_in
  tk_index(fit, timetk_idx = T) %>% class() not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 5. Failure: tk_make_future_timeseries(date) test returns correct format. (@te
  `test` not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 6. Failure: tk_make_future_timeseries(date) test returns correct format. (@te
  `test` not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 7. Failure: tk_make_future_timeseries(date) test returns correct format. (@te
  `test` not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 8. Failure: tk_make_future_timeseries(date) test returns correct format. (@te
  `test` not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 9. Failure: tk_make_future_timeseries(date) test returns correct format. (@te
  `test` not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 10. Failure: tk_make_future_timeseries(date) test returns correct format. (@t
  `test` not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 11. Failure: tk_make_future_timeseries(date) test returns correct format. (@t
  tk_make_future_timeseries(test_date, n_future = 2) not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 12. Failure: tk_make_future_timeseries(date) test returns correct format. (@t
  tk_make_future_timeseries(test_date, n_future = 2, skip_values = skip_values) not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 13. Failure: tk_make_future_timeseries(date) test returns correct format. (@t
  tk_make_future_timeseries(test_date, n_future = 2, insert_values = insert) not equal to `expectation`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 14. Failure: tk_make_future_timeseries(date) test returns correct format. (@t
  `tk_make_future_timeseries(test_date, n_future = 2, insert_values = insert)` did not produce any messages.
  
  ── 15. Failure: tk_make_future_timeseries(predict_every_two) test returns correc
  `test` not equal to `expect_every_two`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 16. Failure: tk_make_future_timeseries(predict_every_three) test returns corr
  `test` not equal to `expect_every_three`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 17. Failure: tk_make_future_timeseries(predict_every_four) test returns corre
  `test` not equal to `expect_every_four`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 18. Failure: tk_make_future_timeseries(predict_random) test returns correct f
  `test` not equal to `expect_random`.
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 19. Error: mts to tbl test returns tibble with correct rows and columns. (@te
  cannot join a Date object with an object that is not a Date object
  Backtrace:
   1. testthat::expect_identical(test_tbl_4b, FB_tbl %>% select(-symbol))
   5. testthat:::compare.default(act$val, exp$val)
   7. dplyr:::all.equal.tbl_df(x, y, ...)
   8. dplyr:::equal_data_frame(...)
  
  ── 20. Failure: tbl to ts test returns ts with correct rows and columns. (@test_
  FB_tbl %>% select(-symbol) not identical to `test_ts_2`.
  Incompatible type for column `date`: x Date, y POSIXct/POSIXt
  
  ── 21. Failure: xts to ts test returns ts with correct rows and columns. (@test_
  `FB_xts` not identical to `test_ts_5`.
  Attributes: < Component "index": Attributes: < Component "tclass": Lengths (1, 2) differ (string compare on first 1) > >
  Attributes: < Component "index": Attributes: < Component "tclass": 1 string mismatch > >
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 265 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 21 ]
  1. Failure: tk_index(ts) test returns correct format. (@test_tk_index.R#38) 
  2. Failure: tk_index(xts) test returns correct format. (@test_tk_index.R#93) 
  3. Failure: tk_index(zoo) test returns correct format. (@test_tk_index.R#106) 
  4. Failure: tk_index(decomposed.ts) test returns correct format. (@test_tk_index.R#326) 
  5. Failure: tk_make_future_timeseries(date) test returns correct format. (@test_tk_make_future_timeseries.R#56) 
  6. Failure: tk_make_future_timeseries(date) test returns correct format. (@test_tk_make_future_timeseries.R#62) 
  7. Failure: tk_make_future_timeseries(date) test returns correct format. (@test_tk_make_future_timeseries.R#69) 
  8. Failure: tk_make_future_timeseries(date) test returns correct format. (@test_tk_make_future_timeseries.R#76) 
  9. Failure: tk_make_future_timeseries(date) test returns correct format. (@test_tk_make_future_timeseries.R#83) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted