Skip to content

Commit

Permalink
Merge pull request haozhu233#781 from haozhu233/multi_output
Browse files Browse the repository at this point in the history
Fix an obscure YAML possibiity
  • Loading branch information
dmurdoch authored Dec 1, 2023
2 parents 87b3c68 + 183dc7c commit 06f8743
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,9 @@
# auto_format <- getOption("kableExtra.auto_format", default = FALSE)
# if (auto_format) auto_set_format()

output_type <-
if (is.list(rmarkdown::metadata$output))
names(rmarkdown::metadata$output)[1]
else
rmarkdown::metadata$output
output_type <- rmarkdown::metadata$output[1]
if (is.list(output_type))
output_type <- names(output_type)

if (!is.null(output_type) && output_type %in% c(
"ioslides_presentation", "slidy_presentation",
Expand Down

0 comments on commit 06f8743

Please sign in to comment.