Skip to content

Commit

Permalink
feat: set Robyn::dt_prophet_holidays as default dt_holidays param
Browse files Browse the repository at this point in the history
  • Loading branch information
laresbernardo committed Sep 1, 2022
1 parent a07415d commit 01610a4
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#' @return Dataframe. Contains simulated dummy dataset to test and run demo.
"dt_simulated_weekly"

# dt_input <- fread('data/de_simulated_data.csv')
# dt_input <- read.csv('data/de_simulated_data.csv')
# save(dt_input, file = "data/dt_input.RData", version = 2)
# dt_simulated_weekly <- as_tibble(dt_simulated_weekly)
# save(dt_simulated_weekly, file = "data/dt_simulated_weekly.RData", version = 2)
Expand Down
2 changes: 1 addition & 1 deletion R/R/inputs.R
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@
#' Class: \code{robyn_inputs}.
#' @export
robyn_inputs <- function(dt_input = NULL,
dt_holidays = NULL,
dt_holidays = Robyn::dt_prophet_holidays,
date_var = "auto",
dep_var = NULL,
dep_var_type = NULL,
Expand Down
6 changes: 3 additions & 3 deletions R/R/refresh.R
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
#' Robyn <- robyn_refresh(
#' json_file = json_file,
#' dt_input = dt_simulated_weekly,
#' dt_holidays = dt_prophet_holidays,
#' dt_holidays = Robyn::dt_prophet_holidays,
#' refresh_steps = 13,
#' refresh_mode = "auto",
#' refresh_iters = 200,
Expand All @@ -85,7 +85,7 @@
#' Robyn <- robyn_refresh(
#' json_file = json_file2,
#' dt_input = dt_simulated_weekly,
#' dt_holidays = dt_prophet_holidays,
#' dt_holidays = Robyn::dt_prophet_holidays,
#' refresh_steps = 4,
#' refresh_mode = "manual",
#' refresh_iters = 200,
Expand All @@ -97,7 +97,7 @@
robyn_refresh <- function(json_file = NULL,
robyn_object = NULL,
dt_input = NULL,
dt_holidays = NULL,
dt_holidays = Robyn::dt_prophet_holidays,
plot_folder_sub = NULL,
refresh_steps = 4,
refresh_mode = "manual",
Expand Down
4 changes: 3 additions & 1 deletion R/man/robyn_outputs.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 01610a4

Please sign in to comment.