https://heavywatal.github.io/slides/
- knitr
interprets code chunks in R Markdown source (
rmarkdown/**.Rmd), and generates Markdown files (content/**.md) and figures (content/*/figure/*). - Hugo
converts Markdown files (
content/**.md) to HTML files (public/**.html). - reveal.js
helps rendering HTML as presentation slides.
KaTeX
renders math equations (
$ ... $and\[ ... \]) embedded in HTML. They are included in a Hugo theme. - The output and libraries are published via
gh-pagesbranch 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.
install.packages("knitr")
install.packages("tidyverse")
install.packages("cowplot")
install.packages("ggrepel", "ggridges")
install.packages("tidymodels")
install.packages("cmdstanr", "bayesplot")
install.packages(c("rstan", "rstanarm", "tidybayes"))
install.packages("gifski")
install.packages("palmerpenguins")
install.packages("nycflights13")
install.packages("remotes")
remotes::install_github("heavywatal/rwtl")-
Install nvm
-
Install node:
nvm install --lts --latest-npm -
Setup node:
nvm use stable -
Change directory to this repo:
cd ~/git/slides/ -
npm install(decktape viapackage.json) -
Run decktape:
npm run decktape https://heavywatal.github.io/slides/tmd2021/1-introduction.html 1-introduction.pdf # or manually npx decktape -s 960x720 --chrome-arg=--disable-web-security reveal https://heavywatal.github.io/slides/tohoku2022r/1-introduction.html 1-introduction.pdf npx decktape -s 800x600 --chrome-arg=--disable-web-security generic https://comicalcommet.github.io/r-training-2021/R_training_2021_1.html R_training_2021_1.pdf