# load libraries and install them if required -----------------------------
## the script ensures the needed packages are provided
# packages || specify packages to be loaded during analysis
packages <- c("haven", "tidyverse", "drake")
# to_install || verify which packages needs to be additionally installed
to_install <- packages[!(packages %in% rownames(installed.packages()))]
## install packages
invisible(sapply(to_install, install.packages))
## load packages
invisible(sapply(packages, library, character.only = TRUE))
## clean up
rm(packages); rm(to_install)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.