Skip to content

Instantly share code, notes, and snippets.

@lcolladotor
Created November 30, 2018 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lcolladotor/559b085b573a8d7a865110fa7b564006 to your computer and use it in GitHub Desktop.
Save lcolladotor/559b085b573a8d7a865110fa7b564006 to your computer and use it in GitHub Desktop.
(fixed) PowerPoint presentations with R Markdown - LIBD rstats club meeting 2018-11-30
---
title: "LIBD rstats club"
author: "L. Collado-Torres"
date: "11/30/2018"
output:
powerpoint_presentation:
reference_doc: template.potx
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = FALSE)
## Download template.potx from https://github.com/sol-eng/powerpoint/blob/master/vignettes/template.potx
## This two column presentation does work https://github.com/sol-eng/powerpoint/blob/master/vignettes/2c-columns-and-notes.Rmd
## https://github.com/sol-eng/powerpoint/blob/master/vignettes/2c-columns-and-notes.pptx
## in the sense that the title and the contents of the two columns are in the same slide
## See https://community.rstudio.com/t/rmarkdown-how-can-you-show-the-title-and-the-content-of-a-two-column-slide-in-the-same-slide/19100 for more info
## Remember this rule https://github.com/sol-eng/powerpoint/blob/master/vignettes/3-structuring-the-presentation.Rmd#L38!!
```
## R Markdown
This is an R Markdown presentation. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document.
## Slide with Bullets
- Bullet 1
- Bullet 2
- Bullet 3
## Slide with R Output
```{r cars, echo = TRUE}
summary(cars)
```
## Slide with Plot
```{r pressure}
plot(pressure)
```
## Two column
:::::::::::::: {.columns}
::: {.column}
hello
:::
::: {.column}
bye
:::
::::::::::::::
## 4. Two Content
:::::::::::::: {.columns}
::: {.column}
* This layout has a placeholder for a title and two placeholders for content.
* This layout is used when you specify two columns for a content slides at the slide level.
:::
::: {.column}
```
:::::::::::::: {.columns}
::: {.column}
contents...
:::
::: {.column}
contents...
:::
::::::::::::::
```
:::
::::::::::::::
## Slide with notes
::: notes
yay, notes!
:::
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment