Skip to content

Commit

Permalink
Don't nag about styler unless style is TRUE
Browse files Browse the repository at this point in the history
Closes #461
  • Loading branch information
jennybc committed Jul 5, 2024
1 parent baf6b58 commit 313ace9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/reprex_impl.R
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ set_advertise <- function(advertise, venue) {
}

style_requires_styler <- function(style) {
if (!requireNamespace("styler", quietly = TRUE)) {
if (isTRUE(style) && !requireNamespace("styler", quietly = TRUE)) {
reprex_danger("
Install the {.pkg styler} package in order to use
{.code style = TRUE}.")
Expand Down

0 comments on commit 313ace9

Please sign in to comment.