-
Notifications
You must be signed in to change notification settings - Fork 1
/
install.R
executable file
·79 lines (74 loc) · 1.41 KB
/
install.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
#!/usr/bin/env r
# Install devtools, so we can install versioned packages
install.packages("devtools")
# Specific versions of lwgeom and sf are needed
# Latest pinned versions at the time do not install,
# due to incompatibilities with libproj versions they
# need and what is avaialble in the deb repos
versioned_packages = c(
"sf", "0.9-8",
"lwgeom", "0.2-5"
)
for (i in seq(1, length(versioned_packages), 2)) {
devtools::install_version(
versioned_packages[i],
version = versioned_packages[i + 1],
upgrade = FALSE,
quiet = TRUE
)
}
# Install a bunch of R packages
# This doesn't do any dependency resolution or anything,
# so refer to `installed.packages()` for authoritative list
cran_packages <- c(
"gtools",
"tidyverse",
"learnr",
"knitr",
"rmarkdown",
"Rcpp",
"reticulate",
"shiny",
"itsadug",
"Matrix",
"TMB",
"car",
"lme4",
"MASS",
"MuMIn",
"mediation",
"nlsem",
"lavaan",
"semPlot",
"mgcv",
"mgcViz",
"DHARMa",
"dunn.test",
"corrplot",
"statmod",
"tweedie",
"glmmTMB",
"data.table",
"rgeos",
"sp",
"raster",
"rgdal",
"purrr",
"ggpubr",
"ggstance",
"gplots",
"gganimate",
"splitstackshape",
"rworldmap",
"maptools",
"mapdata",
"rnaturalearth",
"rnaturalearthdata",
"viridis",
"adehabitatMA",
"ncdf4",
"Information",
"corrplot",
"ClustOfVar"
)
install.packages(cran_packages, upgrade=FALSE, quiet=TRUE)