Last updated on 2020-06-15 08:53:07 CEST.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.2.0 | 6.63 | 161.67 | 168.30 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.2.0 | 5.60 | 121.27 | 126.87 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.2.0 | 200.78 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 0.2.0 | 194.36 | ERROR | |||
r-devel-windows-ix86+x86_64 | 0.2.0 | 31.00 | 231.00 | 262.00 | ERROR | |
r-patched-linux-x86_64 | 0.2.0 | 6.30 | 155.12 | 161.42 | ERROR | |
r-patched-solaris-x86 | 0.2.0 | 261.40 | ERROR | |||
r-release-linux-x86_64 | 0.2.0 | 5.41 | 156.76 | 162.17 | ERROR | |
r-release-osx-x86_64 | 0.2.0 | WARN | ||||
r-release-windows-ix86+x86_64 | 0.2.0 | 28.00 | 156.00 | 184.00 | ERROR | |
r-oldrel-osx-x86_64 | 0.2.0 | OK | ||||
r-oldrel-windows-ix86+x86_64 | 0.2.0 | 21.00 | 156.00 | 177.00 | ERROR |
Version: 0.2.0
Check: examples
Result: ERROR
Running examples in 'anomalize-Ex.R' failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: decompose_methods
> ### Title: Methods that power time_decompose()
> ### Aliases: decompose_methods decompose_twitter decompose_stl
>
> ### ** Examples
>
>
> 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
>
> tidyverse_cran_downloads %>%
+ ungroup() %>%
+ filter(package == "tidyquant") %>%
+ decompose_stl(count)
Error in time_frequency(data, period = frequency, message = message) :
Error time_frequency(): Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Calls: %>% ... withVisible -> <Anonymous> -> decompose_stl -> time_frequency
Execution halted
Flavors: r-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [59s/69s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(anomalize)
== Use anomalize to improve your Forecasts by 50%! =============================
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
-- 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ----------------------
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ---------
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
-- 3. Error: grouped_tbl_time works (@test-time_apply.R#11) -------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 4. Error: tbl_time works (@test-time_apply.R#17) ---------------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 5. Failure: single tbl_df (@test-time_decompose.R#20) ----------------------
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
-- 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
-- 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
-- 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) -----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
-- 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
-- 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) -------
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
-- 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ----
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
== testthat results ===========================================================
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.2.0
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
...
--- re-building 'anomalize_methods.Rmd' using rmarkdown
Quitting from lines 87-110 (anomalize_methods.Rmd)
Error: processing vignette 'anomalize_methods.Rmd' failed with diagnostics:
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
--- failed re-building 'anomalize_methods.Rmd'
--- re-building 'anomalize_quick_start_guide.Rmd' using rmarkdown
Quitting from lines 68-74 (anomalize_quick_start_guide.Rmd)
Error: processing vignette 'anomalize_quick_start_guide.Rmd' failed with diagnostics:
invalid 'type' (character) of argument
--- failed re-building 'anomalize_quick_start_guide.Rmd'
--- re-building 'forecasting_with_cleaned_anomalies.Rmd' using rmarkdown
-- Attaching packages --------------------------------------- tidyverse 1.3.0 --
v ggplot2 3.3.1 v purrr 0.3.4
v tibble 3.0.1 v dplyr 1.0.0
v tidyr 1.1.0 v stringr 1.4.0
v readr 1.3.1 v forcats 0.5.0
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x purrr::is_null() masks testthat::is_null()
x dplyr::lag() masks stats::lag()
x dplyr::matches() masks tidyr::matches(), testthat::matches()
Loading required package: lubridate
Attaching package: 'lubridate'
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 </>
Attaching package: 'tidyquant'
The following objects are masked from 'package:anomalize':
palette_light, theme_tq
Attaching package: 'timetk'
The following objects are masked from 'package:tidyquant':
summarise_by_time, summarize_by_time
--- finished re-building 'forecasting_with_cleaned_anomalies.Rmd'
SUMMARY: processing the following files failed:
'anomalize_methods.Rmd' 'anomalize_quick_start_guide.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [43s/64s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(anomalize)
══ Use anomalize to improve your Forecasts by 50%! ═════════════════════════════
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
── 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ──────────────────────
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ─────────
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
── 3. Error: grouped_tbl_time works (@test-time_apply.R#11) ───────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 4. Error: tbl_time works (@test-time_apply.R#17) ───────────────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 5. Failure: single tbl_df (@test-time_decompose.R#20) ──────────────────────
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
── 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
── 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
── 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) ─────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
── 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
── 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) ───────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
── 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ────
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
══ testthat results ═══════════════════════════════════════════════════════════
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.2.0
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
...
--- re-building ‘anomalize_methods.Rmd’ using rmarkdown
Quitting from lines 87-110 (anomalize_methods.Rmd)
Error: processing vignette 'anomalize_methods.Rmd' failed with diagnostics:
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
--- failed re-building ‘anomalize_methods.Rmd’
--- re-building ‘anomalize_quick_start_guide.Rmd’ using rmarkdown
Quitting from lines 68-74 (anomalize_quick_start_guide.Rmd)
Error: processing vignette 'anomalize_quick_start_guide.Rmd' failed with diagnostics:
invalid ‘type’ (character) of argument
--- failed re-building ‘anomalize_quick_start_guide.Rmd’
--- re-building ‘forecasting_with_cleaned_anomalies.Rmd’ using rmarkdown
── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
✔ ggplot2 3.3.1 ✔ purrr 0.3.4
✔ tibble 3.0.1 ✔ dplyr 1.0.0
✔ tidyr 1.1.0 ✔ stringr 1.4.0
✔ readr 1.3.1 ✔ forcats 0.5.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ purrr::is_null() masks testthat::is_null()
✖ dplyr::lag() masks stats::lag()
✖ dplyr::matches() masks tidyr::matches(), testthat::matches()
Loading required package: lubridate
Attaching package: 'lubridate'
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 </>
Attaching package: 'tidyquant'
The following objects are masked from 'package:anomalize':
palette_light, theme_tq
Attaching package: 'timetk'
The following objects are masked from 'package:tidyquant':
summarise_by_time, summarize_by_time
--- finished re-building ‘forecasting_with_cleaned_anomalies.Rmd’
SUMMARY: processing the following files failed:
‘anomalize_methods.Rmd’ ‘anomalize_quick_start_guide.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-debian-gcc, r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.2.0
Check: examples
Result: ERROR
Running examples in ‘anomalize-Ex.R’ failed
The error most likely occurred in:
> ### Name: decompose_methods
> ### Title: Methods that power time_decompose()
> ### Aliases: decompose_methods decompose_twitter decompose_stl
>
> ### ** Examples
>
>
> 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
>
> tidyverse_cran_downloads %>%
+ ungroup() %>%
+ filter(package == "tidyquant") %>%
+ decompose_stl(count)
Error in time_frequency(data, period = frequency, message = message) :
Error time_frequency(): Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Calls: %>% ... withVisible -> <Anonymous> -> decompose_stl -> time_frequency
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc, r-devel-windows-ix86+x86_64, r-patched-solaris-x86, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [65s/82s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(anomalize)
══ Use anomalize to improve your Forecasts by 50%! ═════════════════════════════
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
── 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ──────────────────────
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ─────────
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
── 3. Error: grouped_tbl_time works (@test-time_apply.R#11) ───────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 4. Error: tbl_time works (@test-time_apply.R#17) ───────────────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 5. Failure: single tbl_df (@test-time_decompose.R#20) ──────────────────────
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
── 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
── 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
── 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) ─────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
── 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
── 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) ───────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
── 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ────
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
══ testthat results ═══════════════════════════════════════════════════════════
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.2.0
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
--- re-building ‘anomalize_methods.Rmd’ using rmarkdown
Quitting from lines 87-110 (anomalize_methods.Rmd)
Error: processing vignette 'anomalize_methods.Rmd' failed with diagnostics:
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
--- failed re-building ‘anomalize_methods.Rmd’
--- re-building ‘anomalize_quick_start_guide.Rmd’ using rmarkdown
Quitting from lines 68-74 (anomalize_quick_start_guide.Rmd)
Error: processing vignette 'anomalize_quick_start_guide.Rmd' failed with diagnostics:
invalid 'type' (character) of argument
--- failed re-building ‘anomalize_quick_start_guide.Rmd’
--- re-building ‘forecasting_with_cleaned_anomalies.Rmd’ using rmarkdown
── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
✔ ggplot2 3.3.1 ✔ purrr 0.3.4
✔ tibble 3.0.1 ✔ dplyr 1.0.0
✔ tidyr 1.1.0 ✔ stringr 1.4.0
✔ readr 1.3.1 ✔ forcats 0.5.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ purrr::is_null() masks testthat::is_null()
✖ dplyr::lag() masks stats::lag()
✖ dplyr::matches() masks tidyr::matches(), testthat::matches()
Loading required package: lubridate
Attaching package: 'lubridate'
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 </>
Attaching package: 'tidyquant'
The following objects are masked from 'package:anomalize':
palette_light, theme_tq
Attaching package: 'timetk'
The following objects are masked from 'package:tidyquant':
summarise_by_time, summarize_by_time
--- finished re-building ‘forecasting_with_cleaned_anomalies.Rmd’
SUMMARY: processing the following files failed:
‘anomalize_methods.Rmd’ ‘anomalize_quick_start_guide.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [67s/81s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(anomalize)
══ Use anomalize to improve your Forecasts by 50%! ═════════════════════════════
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
── 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ──────────────────────
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ─────────
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
── 3. Error: grouped_tbl_time works (@test-time_apply.R#11) ───────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 4. Error: tbl_time works (@test-time_apply.R#17) ───────────────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 5. Failure: single tbl_df (@test-time_decompose.R#20) ──────────────────────
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
── 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
── 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
── 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) ─────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
── 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
── 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) ───────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
── 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ────
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
══ testthat results ═══════════════════════════════════════════════════════════
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [68s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(anomalize)
== Use anomalize to improve your Forecasts by 50%! =============================
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
-- 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ----------------------
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ---------
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
-- 3. Error: grouped_tbl_time works (@test-time_apply.R#11) -------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 4. Error: tbl_time works (@test-time_apply.R#17) ---------------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 5. Failure: single tbl_df (@test-time_decompose.R#20) ----------------------
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
-- 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
-- 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
-- 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) -----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
-- 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
-- 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) -------
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
-- 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ----
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
== testthat results ===========================================================
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-devel-windows-ix86+x86_64
Version: 0.2.0
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
--- re-building 'anomalize_methods.Rmd' using rmarkdown
Quitting from lines 87-110 (anomalize_methods.Rmd)
Error: processing vignette 'anomalize_methods.Rmd' failed with diagnostics:
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
--- failed re-building 'anomalize_methods.Rmd'
--- re-building 'anomalize_quick_start_guide.Rmd' using rmarkdown
Quitting from lines 68-74 (anomalize_quick_start_guide.Rmd)
Error: processing vignette 'anomalize_quick_start_guide.Rmd' failed with diagnostics:
invalid 'type' (character) of argument
--- failed re-building 'anomalize_quick_start_guide.Rmd'
--- re-building 'forecasting_with_cleaned_anomalies.Rmd' using rmarkdown
-- Attaching packages --------------------------------------- tidyverse 1.3.0 --
v ggplot2 3.3.1 v purrr 0.3.4
v tibble 3.0.1 v dplyr 1.0.0
v tidyr 1.1.0 v stringr 1.4.0
v readr 1.3.1 v forcats 0.5.0
-- Conflicts ------------------------------------------ tidyverse_conflicts() --
x dplyr::filter() masks stats::filter()
x purrr::is_null() masks testthat::is_null()
x dplyr::lag() masks stats::lag()
x dplyr::matches() masks tidyr::matches(), testthat::matches()
Loading required package: lubridate
Attaching package: 'lubridate'
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 </>
Attaching package: 'tidyquant'
The following objects are masked from 'package:anomalize':
palette_light, theme_tq
Attaching package: 'timetk'
The following objects are masked from 'package:tidyquant':
summarise_by_time, summarize_by_time
--- finished re-building 'forecasting_with_cleaned_anomalies.Rmd'
SUMMARY: processing the following files failed:
'anomalize_methods.Rmd' 'anomalize_quick_start_guide.Rmd'
Error: Vignette re-building failed.
Execution halted
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64, r-oldrel-windows-ix86+x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [56s/61s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(anomalize)
══ Use anomalize to improve your Forecasts by 50%! ═════════════════════════════
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
── 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ──────────────────────
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ─────────
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
── 3. Error: grouped_tbl_time works (@test-time_apply.R#11) ───────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 4. Error: tbl_time works (@test-time_apply.R#17) ───────────────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 5. Failure: single tbl_df (@test-time_decompose.R#20) ──────────────────────
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
── 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
── 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
── 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) ─────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
── 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
── 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) ───────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
── 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ────
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
══ testthat results ═══════════════════════════════════════════════════════════
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-patched-linux-x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [77s/114s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(anomalize)
══ Use anomalize to improve your Forecasts by 50%! ═════════════════════════════
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
── 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ──────────────────────
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ─────────
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
── 3. Error: grouped_tbl_time works (@test-time_apply.R#11) ───────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 4. Error: tbl_time works (@test-time_apply.R#17) ───────────────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 5. Failure: single tbl_df (@test-time_decompose.R#20) ──────────────────────
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
── 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
── 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
── 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) ─────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
── 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
── 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) ───────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
── 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ────
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
══ testthat results ═══════════════════════════════════════════════════════════
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-patched-solaris-x86
Version: 0.2.0
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
...
--- re-building ‘anomalize_methods.Rmd’ using rmarkdown
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Quitting from lines 87-110 (anomalize_methods.Rmd)
Error: processing vignette 'anomalize_methods.Rmd' failed with diagnostics:
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
--- failed re-building ‘anomalize_methods.Rmd’
--- re-building ‘anomalize_quick_start_guide.Rmd’ using rmarkdown
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
Quitting from lines 68-74 (anomalize_quick_start_guide.Rmd)
Error: processing vignette 'anomalize_quick_start_guide.Rmd' failed with diagnostics:
invalid 'type' (character) of argument
--- failed re-building ‘anomalize_quick_start_guide.Rmd’
--- re-building ‘forecasting_with_cleaned_anomalies.Rmd’ using rmarkdown
Warning in engine$weave(file, quiet = quiet, encoding = enc) :
Pandoc (>= 1.12.3) and/or pandoc-citeproc not available. Falling back to R Markdown v1.
── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
✔ ggplot2 3.3.1 ✔ purrr 0.3.4
✔ tibble 3.0.1 ✔ dplyr 1.0.0
✔ tidyr 1.1.0 ✔ stringr 1.4.0
✔ readr 1.3.1 ✔ forcats 0.5.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ purrr::is_null() masks testthat::is_null()
✖ dplyr::lag() masks stats::lag()
✖ dplyr::matches() masks tidyr::matches(), testthat::matches()
Loading required package: lubridate
Attaching package: 'lubridate'
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 </>
Attaching package: 'tidyquant'
The following objects are masked from 'package:anomalize':
palette_light, theme_tq
Attaching package: 'timetk'
The following objects are masked from 'package:tidyquant':
summarise_by_time, summarize_by_time
--- finished re-building ‘forecasting_with_cleaned_anomalies.Rmd’
SUMMARY: processing the following files failed:
‘anomalize_methods.Rmd’ ‘anomalize_quick_start_guide.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-patched-solaris-x86
Version: 0.2.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [56s/62s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
> library(testthat)
> library(anomalize)
══ Use anomalize to improve your Forecasts by 50%! ═════════════════════════════
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
── 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ──────────────────────
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ─────────
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
── 3. Error: grouped_tbl_time works (@test-time_apply.R#11) ───────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 4. Error: tbl_time works (@test-time_apply.R#17) ───────────────────────────
Problem with `mutate()` input `nested.col`.
✖ Problem with `mutate()` input `date`.
✖ Input `date` can't be recycled to size 7.
ℹ Input `date` is `data %>% dplyr::pull(date)`.
ℹ Input `date` must be size 7 or 1, not 425.
ℹ The error occured in group 1: date = 2017-01-07.
ℹ Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
ℹ The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
── 5. Failure: single tbl_df (@test-time_decompose.R#20) ──────────────────────
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
── 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
── 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
── 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) ─────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
── 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
── 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) ───────
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
── 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
── 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
── 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ────
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
══ testthat results ═══════════════════════════════════════════════════════════
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-release-linux-x86_64
Version: 0.2.0
Check: re-building of vignette outputs
Result: WARN
Error(s) in re-building vignettes:
--- re-building ‘anomalize_methods.Rmd’ using rmarkdown
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/pandoc (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/pandoc (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
Error: processing vignette 'anomalize_methods.Rmd' failed with diagnostics:
pandoc document conversion failed with error 6
--- failed re-building ‘anomalize_methods.Rmd’
--- re-building ‘anomalize_quick_start_guide.Rmd’ using rmarkdown
Warning in lubridate::floor_date(x, unit) :
Multi-unit not supported for weeks. Ignoring.
Warning in lubridate::ceiling_date(x, unit) :
Multi-unit not supported for weeks. Ignoring.
Warning in lubridate::floor_date(x, unit) :
Multi-unit not supported for weeks. Ignoring.
Warning in lubridate::ceiling_date(x, unit) :
Multi-unit not supported for weeks. Ignoring.
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/pandoc (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/pandoc (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
Error: processing vignette 'anomalize_quick_start_guide.Rmd' failed with diagnostics:
pandoc document conversion failed with error 6
--- failed re-building ‘anomalize_quick_start_guide.Rmd’
--- re-building ‘forecasting_with_cleaned_anomalies.Rmd’ using rmarkdown
── Attaching packages ─────────────────────────────────────── tidyverse 1.3.0 ──
✔ ggplot2 3.3.0 ✔ purrr 0.3.3
✔ tibble 2.1.3 ✔ dplyr 0.8.5
✔ tidyr 1.0.2 ✔ stringr 1.4.0
✔ readr 1.3.1 ✔ forcats 0.5.0
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ purrr::is_null() masks testthat::is_null()
✖ dplyr::lag() masks stats::lag()
✖ dplyr::matches() masks tidyr::matches(), testthat::matches()
Loading required package: lubridate
Attaching package: 'lubridate'
The following object is masked from 'package:base':
date
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 </>
Attaching package: 'tidyquant'
The following objects are masked from 'package:anomalize':
palette_light, theme_tq
Loading required package: recipes
Attaching package: 'recipes'
The following object is masked from 'package:stringr':
fixed
The following object is masked from 'package:stats':
step
dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/pandoc (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: ____chkstk_darwin
Referenced from: /usr/local/bin/pandoc (which was built for Mac OS X 10.15)
Expected in: /usr/lib/libSystem.B.dylib
Error: processing vignette 'forecasting_with_cleaned_anomalies.Rmd' failed with diagnostics:
pandoc document conversion failed with error 6
--- failed re-building ‘forecasting_with_cleaned_anomalies.Rmd’
SUMMARY: processing the following files failed:
‘anomalize_methods.Rmd’ ‘anomalize_quick_start_guide.Rmd’
‘forecasting_with_cleaned_anomalies.Rmd’
Error: Vignette re-building failed.
Execution halted
Flavor: r-release-osx-x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [48s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(anomalize)
== Use anomalize to improve your Forecasts by 50%! =============================
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
-- 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ----------------------
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ---------
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
-- 3. Error: grouped_tbl_time works (@test-time_apply.R#11) -------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 4. Error: tbl_time works (@test-time_apply.R#17) ---------------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 5. Failure: single tbl_df (@test-time_decompose.R#20) ----------------------
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
-- 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
-- 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
-- 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) -----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
-- 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
-- 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) -------
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
-- 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ----
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
== testthat results ===========================================================
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-release-windows-ix86+x86_64
Version: 0.2.0
Check: tests
Result: ERROR
Running 'testthat.R' [64s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
> library(testthat)
> library(anomalize)
== Use anomalize to improve your Forecasts by 50%! =============================
Business Science offers a 1-hour course - Lab #18: Time Series Anomaly Detection!
</> Learn more at: https://university.business-science.io/p/learning-labs-pro </>
> 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
> library(ggplot2)
> library(tibble)
> library(stringr)
>
> # set_time_scale_template(time_scale_template())
>
> test_check("anomalize")
-- 1. Error: returns a ggplot (@test-plot_anomalies.R#8) ----------------------
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
8. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10) ---------
Object cannot be grouped. Select a single time series for evaluation, and use `dplyr::ungroup()`.
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::plot_anomaly_decomposition(.)
-- 3. Error: grouped_tbl_time works (@test-time_apply.R#11) -------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "broom".
Backtrace:
9. anomalize::time_apply(...)
10. anomalize:::grouped_mapper(...)
3. tidyr::nest(.)
10. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 4. Error: tbl_time works (@test-time_apply.R#17) ---------------------------
Problem with `mutate()` input `nested.col`.
x Problem with `mutate()` input `date`.
x Input `date` can't be recycled to size 7.
i Input `date` is `data %>% dplyr::pull(date)`.
i Input `date` must be size 7 or 1, not 425.
i The error occured in group 1: date = 2017-01-07.
i Input `nested.col` is `purrr::map(.x = data, .f = .f, target = count, ...)`.
i The error occured in group 1: package = "tidyquant".
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
9. anomalize::time_apply(...)
12. anomalize:::grouped_mapper(...)
5. tidyr::nest(.)
12. dplyr::mutate(...)
29. dplyr:::mutate_cols(.data, ...)
-- 5. Failure: single tbl_df (@test-time_decompose.R#20) ----------------------
ncol(stl_tbl_time) not equal to 5.
1/1 mismatches
[1] 6 - 5 == 1
-- 6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(.)
-- 7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = "1 month")
-- 8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44) -----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_frequency(., period = 5)
-- 9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55) ----
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 10. Error: time_trend works: period = '90 days' (@test-time_frequency.R#64)
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = "30 days")
-- 11. Error: time_trend works: period = 90 (@test-time_frequency.R#73) -------
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(., period = 90)
-- 12. Error: time_trend works with small data: period = 'auto' (@test-time_freq
Cannot use on a grouped data frame.
Frequency should be performed on a single time series.
Backtrace:
9. anomalize::time_trend(.)
-- 13. Error: time_recompose works on grouped_tbl_time (@test-time_recompose.R#9
invalid 'type' (character) of argument
Backtrace:
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
4. dplyr::ungroup(.)
4. dplyr::select(., observed:remainder, contains("_l1"))
4. dplyr::select(., -c(observed, remainder))
12. base::apply(., MARGIN = 1, FUN = sum)
-- 14. Error: time_recompose works on tbl_time (@test-time_recompose.R#17) ----
invalid 'type' (character) of argument
Backtrace:
1. dplyr::filter(., package == "tidyquant")
1. dplyr::ungroup(.)
1. anomalize::time_decompose(., count, method = "stl")
1. anomalize::anomalize(., remainder, method = "iqr")
9. anomalize::time_recompose(.)
6. dplyr::ungroup(.)
6. dplyr::select(., observed:remainder, contains("_l1"))
6. dplyr::select(., -c(observed, remainder))
14. base::apply(., MARGIN = 1, FUN = sum)
== testthat results ===========================================================
[ OK: 53 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 14 ]
1. Error: returns a ggplot (@test-plot_anomalies.R#8)
2. Error: returns a ggplot (@test-plot_anomaly_decomposition.R#10)
3. Error: grouped_tbl_time works (@test-time_apply.R#11)
4. Error: tbl_time works (@test-time_apply.R#17)
5. Failure: single tbl_df (@test-time_decompose.R#20)
6. Error: time_frequency works: period = 'auto' (@test-time_frequency.R#26)
7. Error: time_frequency works: period = '1 month' (@test-time_frequency.R#35)
8. Error: time_frequency works: period = 5 (@test-time_frequency.R#44)
9. Error: time_trend works: period = 'auto' (@test-time_frequency.R#55)
1. ...
Error: testthat unit tests failed
Execution halted
Flavor: r-oldrel-windows-ix86+x86_64