Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone issue with prophet_reg() #237

Closed
alejandrohagan opened this issue Oct 30, 2023 · 1 comment
Closed

Timezone issue with prophet_reg() #237

alejandrohagan opened this issue Oct 30, 2023 · 1 comment

Comments

@alejandrohagan
Copy link

hi!
First -- thank you for the package -- honestly such a game changer. I am having the below timezone error when using the package. It seems related to the lubridate but no matter how many times I've removed and install it the error won't go away

Error in C_force_tz(to_posixct(time), tz, roll_dst) : CCTZ: Unrecognized output timezone: "GMT"

I am using R 4.2.3 and Rtools 4.2.

library(tidyverse)
library(timetk)
library(modeltime)
library(tidymodels)


df <- timetk::bike_sharing_daily
split <- timetk::time_series_split(df,assess = 200,cumulative = TRUE)


(train <- training(split))
(test <- testing(split))




rec <- recipe(cnt~dteday,data=train)

mod <- prophet_reg() %>%
  set_engine("prophet")

wf <- workflow() %>%
  add_recipe(rec) %>%
  add_model(mod)

#error below
wf %>% fit(data=train)

@alejandrohagan
Copy link
Author

It isn't an issue with modeltime or prophet but instead lubridate and timechange packages

Uninstalling lubridate and timechange and resinstalling fixed my issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant