Skip to content

Commit

Permalink
Add nolint for ids_with_token() definition (#1756)
Browse files Browse the repository at this point in the history
* Add nolint for `ids_with_token()` definition

* default to `NULL` for deprecated arg instead
  • Loading branch information
IndrajeetPatil authored Oct 29, 2022
1 parent 8a12bf0 commit 04eecd4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/ids_with_token.R
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#' entry of the list of source expressions. Indices correspond to the
#' *rows* where `fun` evaluates to `TRUE` for the `value` in the *token* column.
#' @export
ids_with_token <- function(source_expression, value, fun = `==`, source_file) {
ids_with_token <- function(source_expression, value, fun = `==`, source_file = NULL) {
if (!missing(source_file)) {
lintr_deprecated(old = "source_file", new = "source_expression", version = "3.0.0", type = "Argument")
source_expression <- source_file
Expand Down
2 changes: 1 addition & 1 deletion man/ids_with_token.Rd

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

0 comments on commit 04eecd4

Please sign in to comment.