#' Library
#'
#' @param Packages character vector with ur packages to install or load
#' @importFrom utils install.packages installed.packages
#' @export
Library <- function(Packages) {
InstallAndLoad <- function(Package) {
if (!Package %in% installed.packages()[, 1]) {install.packages(Package, repos="https://cran.rstudio.com/")}
require(Package, character.only = TRUE)
}
invisible(sapply(Packages, InstallAndLoad))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.