Skip to content

Commit

Permalink
Update seq_linter() docs (#2644)
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil authored Aug 6, 2024
1 parent 3358539 commit 8d96145
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/seq_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
#' Additionally, it checks for `1:n()` (from `{dplyr}`) and `1:.N` (from `{data.table}`).
#'
#' These often cause bugs when the right-hand side is zero.
#' It is safer to use [base::seq_len()] or [base::seq_along()] instead.
#' Instead, it is safer to use [base::seq_len()] (to create a sequence of a specified *length*) or
#' [base::seq_along()] (to create a sequence *along* an object).
#'
#' @examples
#' # will produce lints
Expand Down
3 changes: 2 additions & 1 deletion man/seq_linter.Rd

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

0 comments on commit 8d96145

Please sign in to comment.