Skip to content

Commit

Permalink
fix travis
Browse files Browse the repository at this point in the history
  • Loading branch information
mdancho84 committed Jul 26, 2017
1 parent c3abe1b commit 55bd040
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test_tidiers_robets.R
@@ -1,7 +1,8 @@
library(sweep)
library(robets)
library(dplyr)
library(forecast)
library(tidyquant)
library(timetk)
library(robets)
context("Testing robets tidiers")


Expand Down
8 changes: 4 additions & 4 deletions tests/testthat/test_tidiers_stl.R
@@ -1,7 +1,7 @@
library(sweep)
library(forecast)
library(tidyquant)
library(timekit)
library(timetk)
context("Testing STL tidiers")


Expand Down Expand Up @@ -29,7 +29,7 @@ test_that("sw_*.stl test returns tibble with correct rows and columns.", {
expect_equal(ncol(test), 6)


# timekit index ----
# timetk index ----

# data_ts <- USAccDeaths %>%
# tk_tbl() %>%
Expand All @@ -38,11 +38,11 @@ test_that("sw_*.stl test returns tibble with correct rows and columns.", {
#
# fit <- stl(data_ts, s.window = "periodic")
#
# # timekit_idx sw_tidy_decomp -----
# # timetk_idx sw_tidy_decomp -----
# test <- fit %>% sw_tidy_decomp()
# expect_equal(class(test$index), "yearmon")

# timekix_idx not supported with stats::stl()
# test <- fit %>% sw_tidy_decomp(timekit_idx = T)
# test <- fit %>% sw_tidy_decomp(timetk_idx = T)
# expect_equal(class(test$index), "Date")
})

0 comments on commit 55bd040

Please sign in to comment.