
Last chance! 50% off unlimited learning
Sale ends in
pandoc_convert(input, to = NULL, from = NULL, output = NULL, citeproc = FALSE, options = NULL, verbose = FALSE, wd = NULL)
output
)input
).TRUE
to run the pandoc-citeproc filter (for processing
citations) as part of the conversionTRUE
to show the pandoc command line which was executedinput
The system path as well as the version of pandoc shipped with RStudio (if running under RStudio) are scanned for pandoc and the highest version available is used.
## Not run:
# library(rmarkdown)
#
# # convert markdown to various formats
# pandoc_convert("input.md", to = "html")
# pandoc_convert("input.md", to = "pdf")
#
# # process citations
# pandoc_convert("input.md", to = "html", citeproc = TRUE)
#
# # add some pandoc options
# pandoc_convert("input.md", to="pdf", options = c("--listings"))
# ## End(Not run)
Run the code above in your browser using DataLab