#' @importFrom utils install.packages
#' @keywords internal
load_suggests <- function() {
read.dcf("DESCRIPTION", "Suggests") %>%
gsub("\n", "", .) %>%
strsplit(., ",") %>%
unlist() %>%
for (i in .) {
if(!require(i, character.only = TRUE)) {
install.packages(i)
require(i, character.only = TRUE)
}
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.