Adding a `xaringan` RMarkdown file into the `slides` folder

add_slide(nm = "Untitled.Rmd", template = "default", open = TRUE)

Arguments

nm

Name of the file

template

(default = "default") file path to template file in `whisker` format

open

(T/F) should file be opened after creation

Value

A new `xaringan`-flavored RMarkdown file

Details

If a custom template is provided, it should be in the `whisker` format, with entries taken from the following list:

  • course_shortname (course number)

  • course_name (course name)

  • instructor (instructor)

  • description (description of course)

  • dates (Dates/semester for course)

  • short_repo (short form of github repo, user/repo)

  • course_shortname1 (course number without spaces)

  • github (full github URL)

  • course_url (URL for course homepage)

  • slack (Slack channel for course)

  • twitter (Twitter handle of instructor)

Examples

# add_slide('ggplot.Rmd')