Skip to content

Commit 537056c

Browse files
committed
Address line length lints
1 parent 5fd98ce commit 537056c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

R/outliers.R

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -271,10 +271,14 @@ detect_outlr_stl <- function(x = seq_along(y), y,
271271
min_radius = 0,
272272
replacement_multiplier = 0) {
273273
if (dplyr::n_distinct(x) != length(y)) {
274-
cli_abort("`x` contains duplicate values. (If being run on a column in an `epi_df`, did you group by relevant key variables?)")
274+
cli_abort("`x` contains duplicate values. (If being run on a column in an
275+
`epi_df`, did you group by relevant key variables?)")
275276
}
276277
if (length(y) <= 1L) {
277-
cli_abort("`y` has length {length(y)}; that's definitely too little for STL. (If being run in a `mutate()` or `epi_slide()`, check whether you grouped by too many variables; you should not be grouping by `time_value` in particular.)")
278+
cli_abort("`y` has length {length(y)}; that's definitely too little for
279+
STL. (If being run in a `mutate()` or `epi_slide()`, check
280+
whether you grouped by too many variables; you should not be
281+
grouping by `time_value` in particular.)")
278282
}
279283
distinct_x_skips <- unique(diff(x))
280284
if (diff(range(distinct_x_skips)) > 1e-4 * mean(distinct_x_skips)) {

0 commit comments

Comments
 (0)