Closed beauchamplab closed 4 months ago
Yeah this appears to be a thinko in this helper. It doesn't seem to consult whether style
is TRUE
or FALSE
🙈
Our users asked us if they should install styler
since they got this "warning". Maybe:
style_requires_styler <- function(style) {
if (style && !requireNamespace("styler", quietly = TRUE)) {
reprex_danger("
Install the {.pkg styler} package in order to use
{.code style = TRUE}.")
style <- FALSE
}
invisible(style)
}
?
Yes LGTM. Would you like to make a PR?
With
style=FALSE
, users would like to render withoutstyler
. I wonder if "Install the styler package" should still show up?Created on 2024-02-02 with reprex v2.1.0