word_document(toc = FALSE, toc_depth = 3, fig_width = 5, fig_height = 4, fig_caption = TRUE, df_print = "default", highlight = "default", reference_docx = "default", keep_md = FALSE, md_extensions = NULL, pandoc_args = NULL)TRUE to include a table of contents in the outputTRUE to render figures with captionsprint.data.frame. The "kable" method uses the
knitr::kable function. The "tibble" method uses
the tibble package to print a summary of the data frame. In addition
to the named methods you can also pass an arbitrary function to be used
for printing data frames. You can disable the df_print behavior entirely
by setting the option rmarkdown.df_print to FALSE.NULL to prevent syntax highlighting.rmarkdown_format for
additional details.render
word_document format.R Markdown documents can have optional metadata that is used to generate a document header that includes the title, author, and date. For more details see the documentation on R Markdown metadata.
R Markdown documents also support citations. You can find more information on the markdown syntax for citations in the Bibliographies and Citations article in the online documentation.
## Not run: 
# 
# library(rmarkdown)
# 
# # simple invocation
# render("input.Rmd", word_document())
# 
# # specify an option for syntax highlighting
# render("input.Rmd", word_document(highlight = "zenburn"))
# ## End(Not run)
Run the code above in your browser using DataLab