• Stars
    star
    291
  • Rank 142,563 (Top 3 %)
  • Language
    R
  • License
    Other
  • Created over 6 years ago
  • Updated about 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Convert PowerPoint Slides to xaringan (remark.js) Slides

Travis build status AppVeyor build status Coverage status CRAN status

slidex

This package is a work-in-progress, but is aimed at making the process of converting Microsoft PowerPoint slides to beautiful HTML xaringan slides as seamless as possible, maintaining tables, figures, links, and bulleted lists.

Installation

The package is not yet on CRAN. Install the development version with

devtools::install_github("datalorax/slidex")

Basic usage

At present, the package exports a single function, convert_pptx, which takes two required arguments: the path to the PPTX file (passed as a string), and the author (also passed as a string). For example:

library(slidex)
pptx <- system.file("examples", "slidedemo.pptx", package = "slidex")

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

You can optionally pass additional arguments, such as theme (see a list of themes here) or a new title.

Suggested packages

Although not a dependency, the package functionally requires the xaringan package, and works best if the knitr, kableExtra, and tibble packages are installed. Without the latter three, tables will not be produced, although the code to create a dataframe from the tables will still be embedded. Install suggested packages from CRAN with

install.packages(c("xaringan", "knitr", "kableExtra", "tibble"))

Things the package should be able to do

  • Maintain bulleting levels
  • Maintain bolding and italicizing (no support for underlining yet)
  • Maintain pictures
  • Maintain links (slightly imperfect currently)
  • Extract notes from the slides. By default the notes are embedded in the slides and a separate .txt file is written out.

Things the package does not yet do, but hopefully will

  • Pull data and potentially reproduce plots (some support for this already, look in “assets/data” if you have a chart and want the data from it)
  • Convert emf file types to pngs. This is a Microsoft proprietary format and will require users have LibreOffice installed.
  • Maintain two-panel layouts
  • Support both .ppt and .pptx file types. Currently only the latter is supported. Will require LibreOffice.

Other ideas?

I’d love to hear from you if you’ve used the package and had success or you’ve struggled. Either way, feedback, particularly at this early stage, would be greatly appreciated.

More Repositories

1

equatiomatic

Convert models to LaTeX equations
R
617
star
2

esvis

R Package for effect size visualizations.
R
51
star
3

anderson-cv

My CV, made with R Markdown via the pagedown package with some custom HTML and CSS
JavaScript
22
star
4

sds-r

Repo for a draft book on social data science methods with R
R
9
star
5

sundry

A sundry of convenience functions
R
9
star
6

ach-gap-variability

Repo for a paper
R
3
star
7

site

personal website (blog)
HTML
3
star
8

mlm2

Course repository (which publishes the website) for the second course on multilevel modeling (i.e., HLM) for the UO COE
HTML
3
star
9

gapr

R package to estimate effect size gaps between two distributions with ordinal count data
R
3
star
10

psych-seminar21

Whirlwind tour of dataviz
R
2
star
11

CourseR

R course
JavaScript
2
star
12

cos-dataviz

Slides and source code for a talk on data visualization presented through the Center on Open Science
HTML
2
star
13

sds-pkg

Package for accompanying book on social data science with R
R
1
star
14

text-analysis-content-validity

Repo for NCME 2019 Paper: Evaluating Content-Related Validity Evidence Using Text Modeling
HTML
1
star
15

ncme_18

All the code and publicly available data from my NCME paper and presentation, 2018
HTML
1
star
16

edld652

An R package to accompany the EDLD652 course on Data Visualization for Educational Data Science
R
1
star
17

mlm-edu-book

Draft repo for a book on multilevel modeling with educational data using R
HTML
1
star
18

ach-gap-variability-shiny

Interactive map of school-level achievement gaps across the west coast
R
1
star
19

psych-seminar

Talk for a graduate methods seminar in the department of Psychology at UO
CSS
1
star
20

early-learning-alliance-2019

Repo for some consulting work with United Way in the spring of 2019, including a shiny app
R
1
star
21

example-dashboard

An example from class
HTML
1
star