EvaMaeRey / xaringanPrinter

convert xaringan/remark.js slides to Xaringan
Other
7 stars 1 forks source link

xaringanPrinter

Lifecycle:
deprecated

The goal of xaringanPrinter is to provide an easy interface to convert xaringan (remark.js) slides to other formats.

remark.js slides aren’t self contained, and sometimes it’s not ideal, so you might want to convert of pdf. The function slides_pdf is just a wrapper for chrome_print from pagedown.

You might also want a gif preview of slides. You can do this with slides_gif(). Under the hood, we do this by converting html slides to pdf, then the pdf pages to images, and the images to a gif.

Installation

You can install the development version from GitHub with:

# install.packages("devtools")
remotes::install_github("EvaMaeRey/xaringanPrinter")

Example

This is a basic example which shows you how to solve a common problem:

library(xaringanPrinter)
## basic example code
slides_gif(input = "my_slideshow.html", output = "a_folder/my_slideshow.gif")

This will produce “my_slideshow.gif” in “a_folder”.

Deprecated

This package is no longer being developed. Current work regarding outputting {xaringan} slides into different formats has coalesced around Jhelvy/xaringanBuilder.