Skip to content

Commit

Permalink
correctly modify option to rmarkdown::github_document() (#1306)
Browse files Browse the repository at this point in the history
conditionnaly
  • Loading branch information
cderv authored Mar 24, 2022
1 parent c162e25 commit 76ebaab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions R/rd-include-rmd.R
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,10 @@ roxy_tag_rd.roxy_tag_includeRmd <- function(x, base_path, env) {

rmarkdown::render(
rmd_path,
output_format = rmarkdown::github_document(html_preview = FALSE),
output_options = list(
if (packageVersion("rmarkdown") >= "2.12") math_method = NULL
output_format = "github_document",
output_options = c(
list(html_preview = FALSE),
if (packageVersion("rmarkdown") >= "2.12") list(math_method = NULL)
),
output_file = md_path,
quiet = TRUE,
Expand Down

0 comments on commit 76ebaab

Please sign in to comment.