Skip to content

Commit

Permalink
fix examples
Browse files Browse the repository at this point in the history
  • Loading branch information
IndrajeetPatil committed Oct 26, 2024
1 parent 78b0130 commit 0269a5f
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
8 changes: 7 additions & 1 deletion R/complex_conditional_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,20 @@
#' )
#'
#' # okay
#' ready_to_do_something <- a && b && c
#' code <- "if (ready_to_do_something) { do_something() }"
#' writeLines(code)
#' lint(
#' text = code,
#' linters = complex_conditional_linter()
#' )
#'
#' code <- "if (a && b && c) { do_something() }"
#' writeLines(code)
#' lint(
#' text = code,
#' linters = complex_conditional_linter(threshold = 2L)
#' )
#'
#' @evalRd rd_tags("complex_conditional_linter")
#' @seealso [linters] for a complete list of linters available in lintr.
#' @export
Expand Down
12 changes: 9 additions & 3 deletions man/complex_conditional_linter.Rd

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

0 comments on commit 0269a5f

Please sign in to comment.