Skip to content

Commit

Permalink
fix (outliers.R): len = 1L is already baked into assert_int
Browse files Browse the repository at this point in the history
  • Loading branch information
brookslogan committed Jun 18, 2024
1 parent b9df504 commit 1790f72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/outliers.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Check warning on line 297 in R/outliers.R

View workflow job for this annotation

GitHub Actions / lint

file=R/outliers.R,line=297,col=18,[object_usage_linter] no visible binding for global variable 'seasonal_as_residual'

yts <- stats::ts(y, frequency = seasonal_period)
Expand Down

0 comments on commit 1790f72

Please sign in to comment.