Use xaringanthemer
Add this to header:
output:
xaringan::moon_reader:
lib_dir: libs
css: xaringan-themer.css
Add this to a code chunk below the knitr one:
library(xaringanthemer)
# Theme info
mono_light(
base_color = "#1c5253",
header_font_google = google_font("Josefin Sans"),
text_font_google = google_font("Montserrat", "300", "300i"),
code_font_google = google_font("Droid Mono")
)
The following allows an auto-updating server to show the presentation as it is built.
- Create a new rmd file from Xaringan template
- Run
xaringan::inf_mr()
in the console. - Follow link to the site shown.
- Any saved changes will show up in the served presentation.