cacheURL <- "http://bcbiornaseq.seq.cloud"
files <- "bcb_invalid.rda"
mapply(
FUN = function(cacheURL, file, envir) {
if (!file.exists(file)) {
utils::download.file(
url = paste(cacheURL, file, sep = "/"),
destfile = file)
}
# Load R Data file
if (grepl("\\.rda$", file)) {
message(paste("Loading", file))
load(file, envir = envir)
}
},
file = files,
MoreArgs = list(cacheURL = cacheURL, envir = environment())
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.