create_library_r <- function(file = "library.R", path) {
if (!missing(path))
file <- paste0(path, "/", file)
file.create(file)
libs <- c(
"bslib",
"data.table",
"devtools",
"easythemes",
"ecos",
"forecast",
"grid",
"gridExtra",
"igraph",
"kosis",
"lossratio",
"openxlsx",
"plotly",
"readxl",
"rintrojs",
"scales",
"shiny",
"shinyBS",
"shinybusy",
"shinycssloaders",
"shinydashboard",
"shinyFiles",
"shinyjs",
"shinymodules",
"shinyWidgets",
"stringr",
"tibble",
"visNetwork",
"vuw",
"writexl"
)
cat(
"\nsuppressPackageStartupMessages({",
paste0("\n\tlibrary(", libs, ")"), "\r})",
file = file
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.