forked from response4venezuelans/R4VRMRP2022SP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
global.R
28 lines (23 loc) · 817 Bytes
/
global.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
## Checking for installed packages and installing them if not found
list.of.packages <- c("shiny", "shinythemes","readxl","writexl","tidyverse","dplyr","shinydashboard")
new.packages <- list.of.packages[!(list.of.packages %in% installed.packages()[,"Package"])]
if(length(new.packages) > 0) {
install.packages(new.packages, dependencies = TRUE)
print(paste0("The following package was installed:", new.packages))
} else if (length(new.packages) == 0) {
print("All packages were already installed previously")
}
## Running libraries
library("shiny")
library("shinythemes")
library("readxl")
library("writexl")
library("tidyverse")
library("dplyr")
library("shinydashboard")
library("activityinfo")
library("r4vstyle")
library("plotly")
library("datamods")
library("stringdist")
library("naniar")