Skip to content

heavywatal/slides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

362 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slide decks

https://heavywatal.github.io/slides/

Framework

  1. knitr interprets code chunks in R Markdown source (source/*/*.Rmd), and generates Markdown files (content/*/*.md) and figures (content/*/figure/*).
  2. Hugo converts Markdown files (content/*/*.md) to HTML files (public/*/*.html).
  3. reveal.js helps rendering HTML as presentation slides. KaTeX renders math equations ($ ... $ and \[ ... \]) embedded in HTML. They are included in a Hugo theme.
  4. The output and libraries are published via gh-pages branch of this repository.

But I recommend using Quarto Presentation via RStudio IDE. It is user-friendly and has decent defaults compared to older alternatives such as xaringan, rstudio/revealjs, and others supported in rmarkdown package.

R packages used in *.Rmd

install.packages("knitr")
install.packages("tidyverse")
install.packages("tidymodels")
install.packages("cowplot")
install.packages(c("ggrepel", "ggridges"))
install.packages("nycflights13")
install.packages("gifski")
install.packages("cmdstanr", repos = c('https://stan-dev.r-universe.dev', getOption("repos")))
install.packages("bayesplot")
install.packages(c("rstan", "rstanarm", "tidybayes"))
install.packages("pak")
pak::pak("heavywatal/rwtl")

Save as PDF

Use decktape (See below for installation):

decktape --help

URL=https://heavywatal.github.io/slides/tohoku2026r/1-introduction.html
PDF=1-introduction.pdf
decktape -s 960x720 reveal "$URL" "$PDF"

# or directly
decktape -s 960x720 reveal https://heavywatal.github.io/slides/tohoku2026r/1-introduction.html 1-introduction.pdf
decktape -s 800x600 automatic https://comicalcommet.github.io/r-training-2025/R_training_2025_1.html R_training_1.pdf

Install decktape with node

  1. Install pnpm:
    curl -fsSL https://get.pnpm.io/install.sh | sh -
    Add the following lines to your shell profile (e.g., ~/.bashrc):
    export PNPM_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}/pnpm"
    PATH="$PNPM_HOME/bin:$PATH"
  2. Install node:
    pnpm env use --global lts
  3. Install decktape:
    pnpm add -g decktape
  4. Approve build scripts of puppeteer if prompted:
    pnpm approve-builds -g
    # pick puppeteer and approve it

Releases

Packages

Used by

Contributors

Languages