Skip to content

Commit

Permalink
Fix output type detection in .onLoad
Browse files Browse the repository at this point in the history
Fixes R 4.3 compatibility and resolves haozhu233#750
  • Loading branch information
kupietz committed Apr 25, 2023
1 parent 292f607 commit 5cd02b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zzz.R
Expand Up @@ -21,7 +21,7 @@
auto_format <- getOption("kableExtra.auto_format", default = TRUE)
if (auto_format) auto_set_format()
if (!is.null(rmarkdown::metadata$output) &&
rmarkdown::metadata$output %in% c(
names(rmarkdown::metadata$output)[1] %in% c(
"ioslides_presentation", "slidy_presentation",
"gitbook", "bookdown::gitbook", "radix_article", "radix::radix_article",
"distill_article", "distill::distill_article"
Expand Down

0 comments on commit 5cd02b3

Please sign in to comment.