Skip to contents

Get an exercise

Usage

exercise(name = c("faux", "fixed", "mixed", "calories"), filename = NULL)

Arguments

name

The name of the exercise

filename

What filename you want to save (defaults to the name of the exercise in the working directory)

Value

Saves a file to the working directory (or path from filename)

Examples

if (FALSE) {
exercise("faux") # get exercise for the faux workshop
exercise("fixed", "exercises/fixed.Rmd") # save into exercises directory
}