Skip to content

Template repository for "remark" slides generated via R Markdown

License

Notifications You must be signed in to change notification settings

ThorntonLab/RMarkdown_remark_slides_template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Template for R Markdown "remark" slides

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.

An alternative to this template

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.

To use this repository

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.

Required R packages

It is probably helpful to make sure all of your packages are up to date!

At the very least:

  • rmarkdown
  • knitr
  • kableExtra
  • magrittr
  • xaringan

Steps to get your own talk started.

  1. Rename PresentationSlides.Rmd to whatever you want it to be
  2. Rename the value of the SLIDES variable in Makefile to match your new Rmd file name.
  3. Update Makefile to reflect removing Model.png
  4. Write your slides!

If you add external images to this repository that will be graphics for slides:

  1. Commit them!
  2. Add them to the IMAGES variable in Makefile so that your slides rebuild if they change.

Building your presentation

Execute make. If you use a vim-like editor, then execute this command when in normal mode:

:make

Changing the theme

See the demo presentation for a list of themes.

Configuring the R environment

  1. Make the changes to the r setup block near the top of the Rmd file.

Notes regarding Python

  1. If you aren't using Python, remove these two lines:
library(reticulate) # For Python
use_python("/usr/bin/python3", required=T)
  1. You may need to configure the path in the use_python command.

About

Template repository for "remark" slides generated via R Markdown

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published