Importing from Microsoft PowerPoint - yihui/xaringan GitHub Wiki

The slidex package, currently in development, can help you bring Microsoft PowerPoint presentations into R Markdown and turn them into xaringan presentations. The GitHub page will generally have the most up-to-date information on the package, but basically it should:

  • Maintain bulleting levels
  • Bring in any pictures that were in the original PPTX
  • Maintain and reproduce tables
  • Bring in links
  • Bring in slide notes

Install from GitHub with

devtools::install_github("datalorax/slidex")

and then use slidex::convert_pptx to convert any PPTX file to xaringan. For example:

library(slidex)

# Get path to example PowerPoint presentation
pptx <- system.file("examples", "slidedemo.pptx", package = "slidex")

# Convert the PPTX
convert_pptx(path = pptx, author = "Daniel Anderson")

You can also choose a theme you'd like to convert to. For example, to import the slides with the metropolis theme you could specify

convert_pptx(path = pptx, 
             author = "Daniel Anderson",
             theme = "metropolis")