Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/datalorax/slidex
Convert PowerPoint Slides to xaringan (remark.js) Slides
https://github.com/datalorax/slidex
Last synced: 3 days ago
JSON representation
Convert PowerPoint Slides to xaringan (remark.js) Slides
- Host: GitHub
- URL: https://github.com/datalorax/slidex
- Owner: datalorax
- License: other
- Created: 2018-05-29T22:20:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-30T00:32:09.000Z (about 4 years ago)
- Last Synced: 2024-08-03T06:03:25.394Z (3 months ago)
- Language: R
- Homepage:
- Size: 15.8 MB
- Stars: 289
- Watchers: 13
- Forks: 39
- Open Issues: 11
-
Metadata Files:
- Readme: README.Rmd
- License: LICENSE
Awesome Lists containing this project
README
---
output: github_document
---[![Travis build status](https://travis-ci.org/datalorax/slidex.svg?branch=master)](https://travis-ci.org/datalorax/slidex)
[![AppVeyor build status](https://ci.appveyor.com/api/projects/status/github/datalorax/slidex?branch=master&svg=true)](https://ci.appveyor.com/project/datalorax/slidex)
[![Coverage status](https://codecov.io/gh/datalorax/slidex/branch/master/graph/badge.svg)](https://codecov.io/github/datalorax/slidex?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/slidex)](https://cran.r-project.org/package=slidex)```{r setup, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```# slidex
This package is a work-in-progress, but is aimed at making the process of
converting Microsoft PowerPoint slides to beautiful HTML
[xaringan](https://github.com/yihui/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```{r install, eval = FALSE}
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:```{r example1, eval = FALSE}
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](https://github.com/yihui/xaringan/tree/master/inst/rmarkdown/templates/xaringan/resources)) or a new `title`.
![](https://github.com/datalorax/slidex/raw/master/docs/slidex-preview.gif)
## Suggested packages
Although not a dependency, the package functionally requires the [xaringan](https://github.com/yihui/xaringan) package, and works best if the [knitr](https://github.com/yihui/knitr), [kableExtra](https://github.com/haozhu233/kableExtra), and [tibble](https://github.com/tidyverse/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```{r install-suggested, eval = FALSE}
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 `png`s. 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.