# 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"))
# }
Run the code above in your browser using DataLab