business-science / anomalize

Tidy anomaly detection
https://business-science.github.io/anomalize/
338 stars 60 forks source link

Not working with tidyverse 1.2.1 #40

Open dekaufman opened 4 years ago

dekaufman commented 4 years ago

Just making a note for anyone else searching for help on the same problem I had. I upgraded my R version and a lot of packages, and suddenly I got errors when running the standard anomalize package examples:

tidyverse_cran_downloads_anomalized <- tidyverse_cran_downloads %>%
  time_decompose(count, merge = TRUE)

Result:

Error in !.key : invalid argument type

This seems to be already reflected in the information at https://github.com/tidyverse/tidyr/blob/master/revdep/problems.md.

To tide people over until it gets straightened out, I was able to work around the problem by downgrading tidyr:

require(devtools)
install_version("tidyr", version = "0.8.3", repos = "http://cran.us.r-project.org")
mdancho84 commented 4 years ago

Yes, this is related to the tidyr v1.0.0 upgrade. If you need to use anomalize, downgrade to tidyr v0.8.3. Otherwise, we will be releasing to CRAN upgraded versions of tibbletime and anomalize shortly, which will correct the issues.

@DavisVaughan