-
Notifications
You must be signed in to change notification settings - Fork 0
/
00-recon.R
96 lines (93 loc) · 2.98 KB
/
00-recon.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
if(!require("remotes")) install.packages("remotes")
if(!require("tidyverse")) install.packages("tidyverse")
if(!require("outbreaks")) install.packages("outbreaks")
if(!require("incidence")) install.packages("incidence")
if(!require("distcrete")) install.packages("distcrete")
if(!require("epitrix")) install.packages("epitrix")
if(!require("deSolve")) install.packages("deSolve")
if(!require("binom")) install.packages("binom")
if(!require("outbreaker2")) install.packages("outbreaker2")
if(!require("EpiEstim")) remotes::install_github("mrc-ide/EpiEstim")
if(!require("epicontacts")) remotes::install_github("reconhub/epicontacts")
if(!require("projections")) remotes::install_github("reconhub/projections")
if(!require("rio")) install.packages("rio")
if(!require("knitr")) install.packages("knitr")
if(!require("shiny")) install.packages("shiny")
if(!require("flexdashboard")) install.packages("flexdashboard")
if(!require("remotes")) install.packages("remotes")
if(!require("tidyverse")) install.packages("tidyverse")
if(!require("sf")) install.packages("sf")
if(!require("mapview")) install.packages("mapview")
if(!require("GADMTools")) install.packages("GADMTools")
if(!require("ggspatial")) remotes::install_github("paleolimbot/ggspatial")
if(!require("leaflet")) install.packages("leaflet")
if(!require("leaflet.extras2")) install.packages("leaflet.extras2")
if(!require("spdep")) install.packages("spdep")
if(!require("spatstat")) install.packages("spatstat")
if(!require("raster")) install.packages("raster")
if(!require("smacpod")) install.packages("smacpod")
if(!require("ggspatial")) install.packages("ggspatial")
p_list <- c("remotes",
"tidyverse",
"outbreaks",
"incidence",
"distcrete",
"epitrix",
"deSolve",
"binom",
"outbreaker2",
"EpiEstim",
"epicontacts",
"projections",
"rio",
"knitr",
"shiny",
"flexdashboard",
"sf",
"mapview",
"GADMTools",
"ggspatial",
"leaflet",
"leaflet.extras2",
"spdep",
"spatstat",
"raster",
"smacpod",
"ggspatial")
for (i in 1:length(p_list)) {
# i <- 1
library(p_list[i],character.only = T)
}
#' si aparece algún mensaje como:
#'
#' Error in library(p_list[i], character.only = T) :
#' there is no package called ‘outbreaker’
#'
#' avisar
library("remotes")
library("tidyverse")
library("outbreaks")
library("incidence")
library("distcrete")
library("epitrix")
library("deSolve")
library("binom")
library("outbreaker2")
library("EpiEstim")
library("epicontacts")
library("projections")
library("rio")
library("knitr")
library("shiny")
library("flexdashboard")
library("sf")
library("mapview")
library("GADMTools")
library("ggspatial")
library("leaflet")
library("leaflet.extras2")
library("spdep")
library("spatstat")
library("raster")
library("smacpod")
library("ggspatial")