# NOT RUN {
library(rmarkdown)
# simple invocation
render("input.Rmd", rtf_document())
# specify table of contents option
render("input.Rmd", rtf_document(toc = TRUE))
# }
# NOT RUN {
# }
Run the code above in your browser using DataCamp Workspace