Skip to content

Commit

Permalink
silent requireNamespace
Browse files Browse the repository at this point in the history
  • Loading branch information
tmelliott committed Dec 30, 2024
1 parent d660b84 commit de268d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/tidycode.R
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tidy_all_code <- function(x, width = 80, indent = 4, outfile,

### tidy a single piece of code
tidy_code <- function(codeline, width, indent) {
if (!requireNamespace("styler")) {
if (!requireNamespace("styler", quietly = TRUE)) {
stop("Please install suggested package: 'styler'") # nocov
}

Expand Down

0 comments on commit de268d7

Please sign in to comment.