-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathglobal.R
More file actions
21 lines (18 loc) · 713 Bytes
/
global.R
File metadata and controls
21 lines (18 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 1 - Librerias --------------------
paquetes <- list(
"Shiny Core" = list("shiny", "shinydashboard"),
"Shiny Extras" = list("shinyjs", "shinyWidgets", "shinydashboardPlus"),
"Tidyverse" = list("tidyverse", "lubridate", "jsonlite", "httr"),
"Encrypt" = list("digest", "sodium"),
"Generales" = list("xts")
)
lapply(as.list(c(paquetes, recursive = T, use.names = F)),
function(x) {
if (x %in% rownames(installed.packages()) == FALSE) {
install.packages(x, verbose = F)
}
library(x, character.only = T, verbose = F)
})
rm(list = c("paquetes"))
# 2 - Modules --------------------
invisible(lapply(list.files(path = "modules", full.names = T), source))