#' clean_cached_exercises
#'
#' @keywords internal
#'
clean_cached_exercises <- function() {
path <- system.file("tutorials", package = "RPiR")
if (rlang::is_empty(path) || path == "")
stop("RPiR package does not contain a tutorials folder")
files <- list.files(path, pattern = "\\.Rmd$", recursive = TRUE)
for (rmd in files)
rmarkdown::shiny_prerendered_clean(file.path(path, rmd))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.