Get Started

Create a new R Markdown document from the File Menu

  1. File > New File > R Markdown... > Document > Word

 

  1. New File -> R Markdown -> Document ->Word
  2. Generate some Literate Code
  3. Knit (Knit to Word)

The challenge with MS Word files is generating your tables with kintr::kable. There’s also a kableExtra package if you need more functionality with editing your tables.

knitr::kable(head(cars))
speed dist
4 2
4 10
7 4
7 22
8 16
9 10

Including Plots

You can also embed plots, for example:

 
R We Having Fun Yet‽ -- Learning Series
Center for Data & Visualization Sciences
Duke University Libraries
John R Little

CC BY-NC