# This function allows you to load numerous packages and install them if they aren't there.
# You just have to write get.packages("car", "ggplot2", "lme4", etc.)
get.packages <- function(...){
packages <- list(...)
invisible(
lapply(packages, function(x){
if(!require(x, quietly = TRUE, character.only = TRUE)){
install.packages(x);require(x, character.only = TRUE)
}}))}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.