Git Product home page Git Product logo

rmd2ppt's Introduction

R Markdown to PowerPoint

You can create PowerPoint presentations from R Markdown files using RStudio. Warning: This feature is experimental; do not attempt current or production systems. The following instructions have been tested for Linux.

Install

Pandoc

Pandoc now has support the PowerPoint format (as of v2.0.6). The current version of RStudio (v1.1) bundles Pandoc v1, but the next major release of RStudio (v1.2) will bundle Pandoc 2. In the meantime, you will need to manually install and link to the latest version of Pandoc. Warning: Changing the location of your Pandoc installation may break your code and your system; do not attempt unless you are comfortable with making changes to Pandoc.

# Install Pandoc release
version=2.1.3
sudo wget https://github.com/jgm/pandoc/releases/download/$version/pandoc-$version-linux.tar.gz -P /opt
sudo tar xzvf /opt/pandoc-$version-linux.tar.gz -C /opt
sudo rm /usr/local/bin/pandoc
sudo ln -s /opt/pandoc-$version/bin/pandoc /usr/local/bin/pandoc
# Install Pandoc nightly
sudo wget https://github.com/pandoc-extras/pandoc-nightly/releases/download/hash-c24ecf9cd/pandoc-amd64-c24ecf9cd.zip -P /opt
sudo unzip pandoc-amd64-34d8ffbcf.zip
sudo rm /usr/local/bin/pandoc
sudo ln -s /opt/pandoc-amd64-34d8ffbcf/pandoc /usr/local/bin/pandoc

You can always check what version of Pandoc you have in R by running > rmarkdown::pandoc_version().

R packages

You should also upgrade the rmarkdown and knitr packages. You will want to install the webshot package so you can take screenshots of your Shiny apps and include them in your presentations.

install.packages('rmarkdown')
install.packages('knitr')
install.packages("webshot")
webshot::install_phantomjs()

RStudio 1.2 [optional]

RStudio v1.2 contains additional user features for creating PowerPoint presentations. Currently, the features RStudio v1.2 will recognize Pandoc 2 if it already installed. You will still need to manually install Pandoc v2 in order to see the PowerPoint features in RStudio v1.2. You can upgrade to the latest version of RStudio by downloading and installing the daily builds. Warning: RStudio v1.2 is still in development; if you want to test PowerPoint with a stable release then use Pandoc v2 with RStudio v1.1.

Demos

This repository contains demos for creating PowerPoint presentations from R Markdown. All standard markdown format is supported in the PowerPoint output, as well as some nice features like templating. Here is a partial list of features included in the PowerPoint translation::

  • Bullets and numbering
  • Equations
  • Code blocks
  • Text formatting
  • Tables
  • Linked images
  • Multiple columns
  • Templates
  • Presenter notes

See the Pandoc manual for specific support options. Note that if you want to change the slide dimensions or any other aesthetics, you should make those changes in the PowerPoint template.

rmd2ppt's People

Contributors

nwstephens avatar

Stargazers

Jun Ho Chai avatar Jérémie Lespinasse avatar Tom Buckley avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.