business-science / anomalize

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

Error on Windows but not on Mac #56

Closed bdavis19 closed 1 year ago

bdavis19 commented 3 years ago

anom <- usage %>% group_by(date_only) %>% arrange(date_only) %>% summarize(total = sum(amount)) %>% as_tibble() anom_only <- anom %>% time_decompose(total) %>% anomalize(remainder) %>% time_recompose() %>% filter(anomaly == 'Yes')

This code works as intended on my Mac. However, when it's moved to a Windows server I get the following error:

Error in value[3L] : Error in prep_tbl_time(): No date or datetime column found.

Any ideas what could be the cause? The date_only variable is, indeed, a Date.