if(grepl("/tests/testthat", getwd())){
files <- dir()
if("cleanup.R" %in% files){
toremove <- files[!grepl("*.R$",files)]
unlink(toremove, recursive = TRUE)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.