# Initial
options(repos = "http://cran.rstudio.org")
# options(repos = "https://cloud.r-project.org")
have.packages <- installed.packages()[, 1]
cran.packages <- c("tidyverse", "inspectdf", "data.table", "mlr3verse", "here",
"R.utils", "drake", "paradox", "bestNormalize", "xgboost", "ranger",
"Amelia", "mice")
to.install <- setdiff(cran.packages, have.packages)
if (length(to.install) > 0) install.packages(to.install)
#-----------------------------------------------------------------------------
# require packages
pkgs <- c("inspectdf", "readr", "dplyr", "tidyr", "magrittr", "data.table",
"mlr3verse", "mlr3viz", "here", "R.utils", "drake", "scorecard",
"ranger", "bestNormalize", "purrr", "stringr", "Amelia", "mice")
lapply(pkgs, function(pk) require(pk, character.only = TRUE))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.