From 61ff55921f07b8fbcd56586bb03ff6a9000e88e0 Mon Sep 17 00:00:00 2001 From: Kyle F Butts Date: Sun, 1 Dec 2024 15:14:37 -0600 Subject: [PATCH] Fix bug with `yearly.seasonality = 1` --- R/R/prophet.R | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/R/prophet.R b/R/R/prophet.R index 54718c335..39fd582c5 100644 --- a/R/R/prophet.R +++ b/R/R/prophet.R @@ -1003,9 +1003,9 @@ parse_seasonality_args <- function(m, name, arg, auto.disable, default.order) { } else { fourier.order <- default.order } - } else if (arg == TRUE) { + } else if (isTRUE(arg)) { fourier.order <- default.order - } else if (arg == FALSE) { + } else if (isFALSE(arg)) { fourier.order <- 0 } else { fourier.order <- arg