We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7ad523 commit 2f971a8Copy full SHA for 2f971a8
R/transform-code.R
@@ -171,9 +171,8 @@ get_knitr_pattern <- function(filetype) {
171
if (!filetype %in% c("Rnw", "Rmd")) {
172
return(NULL)
173
}
174
- stopifnot(
175
- `{knitr} is required to process vignette files (Rmd, Rnw)` =
176
- requireNamespace("knitr", quietly = TRUE)
177
- )
+ if (!rlang::is_installed("knitr")) {
+ rlang::abort("{knitr} is required to process vignette files (Rmd, Rnw)")
+ }
178
knitr::all_patterns[[if (filetype == "Rnw") "rnw" else "md"]]
179
0 commit comments