From 1790f720713add713d92ed87f8b6113a3418921c Mon Sep 17 00:00:00 2001 From: "Logan C. Brooks" Date: Tue, 18 Jun 2024 09:41:22 -0700 Subject: [PATCH] fix (outliers.R): len = 1L is already baked into assert_int --- R/outliers.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/outliers.R b/R/outliers.R index aa34f31f..337d9359 100644 --- a/R/outliers.R +++ b/R/outliers.R @@ -293,7 +293,7 @@ detect_outlr_stl <- function(x = seq_along(y), y, y <- log(y + offset) } - assert_int(seasonal_period, len = 1L, lower = 2L) + assert_int(seasonal_period, lower = 2L) assert_logical(seasonal_as_residual, len = 1L, any.missing = FALSE) yts <- stats::ts(y, frequency = seasonal_period)