loadsessioninfo <- function(filepath){
#load data
myinfo <- readRDS(filepath);
#load base pkgs
lapply(as.list(myinfo$basePkgs), require, character.only=TRUE);
#load other pkgs
lapply(as.list(names(myinfo$otherPkgs)), require, character.only=TRUE);
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.