View source: R/new_etude_template.R
Creates the boilerplate for an etude exercise.
Typically, this will be called by the RStudio addin, but
you can also run it directly when save=TRUE
1 2 3 4 5 | new_etude_learnr(directory = ".")
new_etude(directory = ".", learnr = FALSE)
new_etude_template(save = TRUE, exercise_id = NULL, learnr = FALSE)
|
directory |
Path to the directory where the files go |
learnr |
Logical flag (default: FALSE) whether to use a learnr compatible document for the exercise. |
save |
Logical indicating whether to save the template to a new file and return the name of that file |
exercise_id |
Root name for the exercise file (.Rmd will be added).
By default, a random, unique root name will be created using the |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.