#' Install course materials
#'
#' `use_module()` will install the materials for a given module in the course
#' Statistical Programming in R on your computer. Then, it will open a new
#' RStudio Project containing the files you'll need for that module.
#'
#' @param module The name of the module
#' @param destdir The path on your computer where you would like the course
#' installed. If `NULL`, defaults to your Desktop or some other conspicuous
#' place.
#'
#'
#' @export
use_module <- function(module, destdir = NULL) {
module <- paste0("emptyfield-ds/", module)
usethis::use_course(
module,
destdir = destdir
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.