Skip to content

Commit

Permalink
[knitr] internal knitr hash option should not be forwarded
Browse files Browse the repository at this point in the history
hash options is for cache feature of knitr
  • Loading branch information
cderv committed Nov 16, 2023
1 parent 0a8a3c6 commit 26987f3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/resources/rmd/hooks.R
Original file line number Diff line number Diff line change
Expand Up @@ -331,9 +331,10 @@ knitr_hooks <- function(format, resourceDir, handledLanguages) {
"fenced.echo", "chunk.echo", "lang", "out.width.px", "out.height.px",
"indent", "class.source", "class.output", "class.message",
"class.warning", "class.error", "attr.source", "attr.output",
"attr.message", "attr.warning", "attr.error", "connection"
"attr.message", "attr.warning", "attr.error", "connection", "hash"
)
known_opts <- c(knitr_default_opts, quarto_knitr_opts, quarto_opts, other_opts)
dump("options", file = "dump.log", append = TRUE)
unknown_opts <- setdiff(names(options), known_opts)
unknown_opts <- Filter(Negate(is.null), unknown_opts)
unknown_opts <- Filter(function(opt) !startsWith(opt, "."), unknown_opts)
Expand Down

0 comments on commit 26987f3

Please sign in to comment.