#' Create a new temp dir
#' @export TempDir
TempDir <- function() {
time <- as.character(Sys.time())
time <- gsub("[\\: ]", "-", time)
rand <- as.character(stats::runif(1))
rand <- gsub("[\\. ]", "", rand)
dir.create(t <- file.path(
tempdir(),
sprintf(
"%s-%s-%s",
time,
Sys.getpid(),
rand
)
))
return(t)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.