Running ‘testthat.R’ [32s/45s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(sweep)
  > 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(forecast)
  > 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(robets)
  > library(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
  
  > library(tidyquant)
  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 </>
  > library(fracdiff)
  > 
  > test_check("sweep")
  ── 1. Failure: sw_sweep test returns tibble with correct rows and columns. (@tes
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 2. Failure: sw_sweep test returns tibble with correct rows and columns. (@tes
  test$index[[6]] not equal to ymd("2018-01-01").
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 3. Failure: sw_sweep test returns tibble with correct rows and columns. (@tes
  test$index[[nrow(test)]] not equal to ymd("2018-01-01").
  Classes differ: POSIXct/POSIXt is not Date
  
  ── 4. Failure: sw_*.StructTS test returns tibble with correct rows and columns. 
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 5. Failure: sw_*.Arima test returns tibble with correct rows and columns. (@t
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 6. Failure: sw_*.Arima test returns tibble with correct rows and columns. (@t
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 7. Failure: sw_*.Arima test returns tibble with correct rows and columns. (@t
  class(test$date) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 8. Failure: sw_*.bats test returns tibble with correct rows and columns. (@te
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 9. Failure: sw_*.bats test returns tibble with correct rows and columns. (@te
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 10. Failure: sw_*.bats test returns tibble with correct rows and columns. (@t
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 11. Failure: sw_*.bats test returns tibble with correct rows and columns. (@t
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 12. Failure: sw_*.decomposed.ts test returns tibble with correct rows and col
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 13. Failure: sw_*.ets test returns tibble with correct rows and columns. (@te
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 14. Failure: sw_*.ets test returns tibble with correct rows and columns. (@te
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 15. Failure: sw_*.HoltWinters test returns tibble with correct rows and colum
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 16. Failure: sw_*.HoltWinters test returns tibble with correct rows and colum
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ── 17. Failure: sw_*.nnetar test returns tibble with correct rows and columns. (
  class(test$index) not equal to "Date".
  Lengths differ: 2 is not 1
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 186 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 17 ]
  1. Failure: sw_sweep test returns tibble with correct rows and columns. (@test_sw_sweep.R#157) 
  2. Failure: sw_sweep test returns tibble with correct rows and columns. (@test_sw_sweep.R#160) 
  3. Failure: sw_sweep test returns tibble with correct rows and columns. (@test_sw_sweep.R#163) 
  4. Failure: sw_*.StructTS test returns tibble with correct rows and columns. (@test_tidiers_StructTS.R#56) 
  5. Failure: sw_*.Arima test returns tibble with correct rows and columns. (@test_tidiers_arima.R#86) 
  6. Failure: sw_*.Arima test returns tibble with correct rows and columns. (@test_tidiers_arima.R#95) 
  7. Failure: sw_*.Arima test returns tibble with correct rows and columns. (@test_tidiers_arima.R#98) 
  8. Failure: sw_*.bats test returns tibble with correct rows and columns. (@test_tidiers_bats_tbats.R#91) 
  9. Failure: sw_*.bats test returns tibble with correct rows and columns. (@test_tidiers_bats_tbats.R#98) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted