#' Setup Tests Infrastructure
#'
## Temporary Directory ----
create_tempdir <- function(path = file.path(tempdir(), "sandbox")) {
old_wd <- getwd()
withr::defer(fs::dir_delete(path), envir = parent.frame())
dir.create(path)
setwd(path)
withr::defer(setwd(old_wd), envir = parent.frame())
invisible(path)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.