• Stars
    star
    173
  • Rank 220,124 (Top 5 %)
  • Language
    HTML
  • License
    Other
  • Created about 4 years ago
  • Updated about 1 year ago

Reviews

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

Repository Details

An R package for building xaringan slides into multiple outputs, including html, pdf, png, gif, pptx, and mp4.

renderthis

R-CMD-check CRAN status Lifecycle: stable

This package contains functions for rendering R Markdown and Quarto documents β€” priamrily xaringan or revealjs slides β€” to different formats, including HTML, PDF, PNG, GIF, PPTX, and MP4, as well as a β€˜social’ output, a png of the first slide re-sized for sharing on social media.

Looking for xaringanBuilder? The package formerly known as xaringanBuilder is now renderthis. If you need to install xaringanBuilder under the previous package name, see the instructions below.

Installation

Note: To get the most out of renderthis, we recommend installing the package with dependencies and making sure that you have a local installation of Google Chrome. See the Setup page for details.

You can install the latest version of renderthis from CRAN with:

install.packages("renderthis")

And the development version from GitHub with:

# install.packages("remotes")
remotes::install_github("jhelvy/renderthis")

Some output formats require additional packages, and each format will provide instructions about how to install any missing dependencies. You can also choose to install renderthis with all of its dependencies:

# From CRAN
install.packages("renderthis", dependencies = TRUE)

# From GitHub
remotes::install_github("jhelvy/renderthis", dependencies = TRUE)

Usage

Use renderthis to render slides to different formats. Here is a diagram of the render hierarchy:

Rmd / qmd
 |
 |--> social (png, from Rmd only)
 |
 |--> html
       |
       |--> pdf
             |
             |--> png
                   |
                   |--> gif
                   |
                   |--> mp4
                   |
                   |--> pptx

To use renderthis, first load the package:

library(renderthis)

All of the package functions follow a common pattern:

  • All functions start with to_*() to render slides to a desired format (e.g., to_pdf()).
  • All functions have a required from argument which should be set to the full or local path to the input file.
  • All functions have an optional to argument. If provided, it can be a full or local path to the output file, and it must end in an appropriate extension (e.g.Β slides.gif for to_gif()). If it is not provided, the output file name will be determined based on the from argument.

Learn more about renderthis in the Get Started article.

Author and License Information

Citation Information

If you use this package in a publication, I would greatly appreciate it if you cited it. You can get the citation information by typing citation("renderthis") into R:

To cite renderthis in publications use:

Helveston, John Paul and Aden-Buie, Garrick (2021). renderthis: Render slides to different formats.

A BibTeX entry for LaTeX users is

@Manual{, title = {renderthis: Render slides to different formats.}, author = {{Helveston} and John Paul and {Aden-Buie} and {Garrick}}, year = {2021}, note = {R package version 0.0.1}, url = {https://jhelvy.github.io/renderthis/}, }

Installing xaringanBuilder

You can install the xaringanBuilder package as it was just prior to the name change with:

remotes::install_github("jhelvy/[email protected]")

Even though the install command mentions renderthis, the package will be installed as xaringanBuilder.

More Repositories

1

splitKbCompare

An interactive tool for comparing layouts of different split mechanical keyboards
R
266
star
2

wireless-corne

Build log and photo gallery for my Wireless Corne keyboard
56
star
3

distillery

A distill blog and showcase about building distill websites and blogs!
HTML
42
star
4

logitr

Fast estimation of multinomial (MNL) and mixed logit (MXL) models in R with "Preference" space or "Willingness-to-pay" (WTP) space utility parameterizations in R
R
42
star
5

stanTuneR

This code uses the algebra solver in Stan (https://mc-stan.org/) to find the parameters of a distribution that produce a desired tail behavior.
R
29
star
6

kyria_3d_cases

20
star
7

qmkJsonConverter

R code to convert the .json file from the QMK configurator into a keymap.c file
C
15
star
8

surveydown

An attempt to build a markdown-based survey platform using Quarto & Shiny
HTML
15
star
9

jKeyboard

Files for creating my custom keyboard, including my Karabiner-Elements settings and WASD Keyboard layout files
13
star
10

formr4conjoint

A simple demo of using formr.org to create a choice-based conjoint survey
HTML
10
star
11

lexis

A theme for xaringan slides
HTML
10
star
12

jhelvy_distill

Source files for my personal website, built using the {distill} R package and deployed with netlify
HTML
10
star
13

mlogitCars

An example of estimating choice models in R using the mlogit package
R
8
star
14

jph

A bunch of useful functions for working in R
R
8
star
15

iris-rev2

Build log of my Iris keyboard (a.k.a. the "Altoids Can")
C
7
star
16

solar-learning-2021

This repository contains the data and code to reproduce results from our study titled "Quantifying the cost savings of global solar photovoltaic supply chains". The link below is to an app to assess the sensitivity of our study outcomes to different modeling assumptions.
HTML
7
star
17

jhelvy_quarto

Source files for my personal website, built using Quarto and deployed with Netlify
R
6
star
18

renderthistemp

Render slides and other media into different formats
HTML
5
star
19

cbcTools

An R package with tools for designing choice based conjoint (cbc) survey experiments and conducting power analyses
R
5
star
20

maddTools

An R package of functions for the GWU course EMSE 6035: Marketing Analytics for Design Decisions
R
3
star
21

charts

A repo of reproducible charts
HTML
3
star
22

coding-with-ai

2
star
23

conjointTools

An R package with tools for designing choice based conjoint (cbc) survey experiments and conduction power analyses
R
2
star
24

surveys-with-formr

Files for my rstudio::conf 2021 lightning talk: "Using formr to create R-powered surveys with individualized feedback"
HTML
2
star
25

tra2015

Raw data and replication of results from our 2015 publication in Transportation Research Part A
R
1
star
26

zmk-config-corne

1
star
27

slides

Slides for talks I've given
HTML
1
star
28

factorlock

Set factors levels based on row order
R
1
star
29

cv

My CV, generated using R, Quarto, and a Googlesheet
R
1
star
30

2023-qux-conf-conjoint

Content for my workshop at the 2023 Quant UX Conference on Open Source Conjoint in R
JavaScript
1
star
31

smartcharging

HTML
1
star
32

gglabelr

Interactive shiny app to create labels on ggplot
R
1
star
33

p4a

Source code for my book "Programming for Analytics in R"
R
1
star
34

scraperToolkit

Toolkit for webscraping in R and Python
R
1
star
35

jhelvy.github.io

HTML
1
star
36

stories-with-data

Workshop on telling stories with data
JavaScript
1
star
37

carsheet

Webscraping of the data at carsheet.io
R
1
star