This repository is a template for presentations based on remark.js.
The slides are stored in an HTML
file containing JavaScript code.
This repository uses the xaringan R
package to let you write slides in R markdown.
You can do a lot with this platform. See the demo for examples and visit the GitHub page for more info. The remark.js wiki is also useful.
Follow the instructions from the xaringan
author about how to get a template presentation from within R Studio
.
This template repository mostly exists for people who prefer to work outside of that environment. This template may also be useful for those who want to create the new presentation repository under immediate version control from within GitHub.
Click Use this template
from the GitHub
interface.
Choose a name for your new repository.
You will get a copy of this repository with all the files but none of the commit history.
It is probably helpful to make sure all of your packages are up to date!
At the very least:
rmarkdown
knitr
kableExtra
magrittr
xaringan
- Rename
PresentationSlides.Rmd
to whatever you want it to be - Rename the value of the
SLIDES
variable inMakefile
to match your newRmd
file name. - Update
Makefile
to reflect removingModel.png
- Write your slides!
If you add external images to this repository that will be graphics for slides:
- Commit them!
- Add them to the
IMAGES
variable inMakefile
so that your slides rebuild if they change.
Execute make
.
If you use a vim
-like editor, then execute this command when in normal
mode:
:make
See the demo presentation for a list of themes.
- Make the changes to the
r setup
block near the top of theRmd
file.
- If you aren't using Python, remove these two lines:
library(reticulate) # For Python
use_python("/usr/bin/python3", required=T)
- You may need to configure the path in the
use_python
command.