getdata <- function(dir, name) {
readRDS(paste("testdata/", dir, "/", name, ".rds", sep = "")) # could move testdata 1 dir lvl up nstead
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.