jhelvy / renderthis

An R package for building xaringan slides into multiple outputs, including html, pdf, png, gif, pptx, and mp4.
https://jhelvy.github.io/renderthis
Other
174 stars 12 forks source link

Add chromote support for slides with panelsets #1

Closed jhelvy closed 3 years ago

jhelvy commented 3 years ago

Following this blog post by @gadenbuie, it would be great to add support for using chromote to support slides with panelsets. Not sure if this should be a "default" or an option (e.g. like an argument called panelsets = TRUE).

jhelvy commented 3 years ago

Okay, I've added the xaringan_to_pdf.R file in the R folder, and added the appropriate package dependencies.

Looks like it works fine with html slides on the web, but local files do need to have "file://" added to the url for it to work.

It also seems to be inserting blank pages sometimes , and I haven't yet figured out the source of this - this appears to happen whenever there is animations in the slides.

The overall structure is nice though, and I might update the other build functions to make use of the progress bar.

jhelvy commented 3 years ago

This is now added with PR #2