getPackages checks the package library for the package list. For any packages not yet installed, it will install them, and then will load all packages.
a vector of packages to be installed/loaded
#getPackages(c("tidyr", "dplyr", "ggplot2"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.