Travis build status AppVeyor build status lifecycle CRAN status cranlogs

{officedown} is bringing some officer features into R markdown documents.



The package facilitates the formatting of Microsoft Word documents produced by R Markdown documents by providing a range of features:

officedown logo


The package also enhances PowerPoint productions with R Markdown by providing a mechanism for placing results according to the slide template contained in the PowerPoint document used as “reference_doc”. It becomes easy to add several contents in the same slide.

The package also offers the possibility to transform your graphic instructions into editable vector graphics (with the rvg package) by simply wrapping your call into a call to function dml.


You can install {officedown} from github with:


Supported formats require some minimum pandoc versions:

R Markdown output pandoc version
Microsoft Word >= 2.0
Microsoft PowerPoint >= 2.4

Getting started


use RStudio Menu to create a document from {officedown} template.

It creates an R markdown document, parameter output is set to officedown::rdocx_document. Note that package {officedown} need to be loaded in the Rmd.

Word Features illustration

A bookdown is available in the package and can be used as a demo.

dir <- system.file(package = "officedown", "examples", "bookdown")
file.copy(dir, getwd(), recursive = TRUE, overwrite = TRUE)

You should see the following document: