.cleanDownload<-function(libdir,workdir="."){
setwd(workdir)
n<-0
while(file.exists(libdir)&n<10){
suppressWarnings(unlink(libdir,recursive=T))
Sys.sleep(3)
n<-n+1
}
if(file.exists(libdir)) warning("Problems removing the downloaded library.")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.