Skip to content

Commit

Permalink
Warn that pandoc 3 is recommended for markdown and .docx tables.
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 24, 2024
1 parent c053800 commit 23383ee
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/save_tt.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ save_tt <- function(x, output, overwrite = FALSE) {

} else if (file_ext == "docx") {
assert_dependency("pandoc")
if (pandoc::pandoc_version() < "3.0.0.0") {
msg <- "A version of `pandoc` greater than 3.0.0.0 is highly recommended to use this feature."
warning(msg, call. = FALSE)
}
pandoc::pandoc_convert(text = x, to = "docx", output = output)
}

Expand Down

0 comments on commit 23383ee

Please sign in to comment.