## @knitr load_packages
# Any package that is required by the script below is given here:
inst_pkgs = load_pkgs = c("ggplot2", "devtools", "zoo",
"plot3D", "lmtest", "faraway", "leaps", "broom",
"readr", "bestglm", "kernlab")
inst_pkgs = inst_pkgs[!(inst_pkgs %in% installed.packages()[,"Package"])]
if (length(inst_pkgs)) install.packages(inst_pkgs)
# Dynamically load packages
pkgs_loaded = lapply(load_pkgs, require, character.only = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.