-
Notifications
You must be signed in to change notification settings - Fork 0
/
01-packages.R
30 lines (22 loc) · 1.14 KB
/
01-packages.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
source("01a-packages-libPath.R")
if (!require("Require", quietly = TRUE)) {
install.packages("Require")
library(Require)
}
.spatialPkgs <- c("lwgeom", "rgdal", "rgeos", "sf", "sp", "stars", "raster", "terra")
Require("PredictiveEcology/SpaDES.install@development")
#installSpaDES(dontUpdate = .spatialPkgs, upgrade = "never")
if (FALSE) {
installSpatialPackages()
#install.packages(c("raster", "terra"), repos = "https://rspatial.r-universe.dev")
sf::sf_extSoftVersion() ## want at least GEOS 3.9.0, GDAL 3.2.1, PROJ 7.2.1
}
out <- makeSureAllPackagesInstalled(modulePath = "modules")
Require(c("config", "RCurl", "RPostgres", "tictoc", "XML"), require = FALSE)
## NOTE: always load packages LAST, after installation above;
## ensure plyr loaded before dplyr or there will be problems
Require(c("data.table", "plyr", "pryr",
"PredictiveEcology/reproducible@development (>= 1.2.8.9040)",
"PredictiveEcology/LandR@development", ## TODO: workaround weird raster/sf method problem
"PredictiveEcology/SpaDES.core@development (>= 1.0.10.9003)",
"archive", "googledrive", "httr", "slackr"), upgrade = FALSE)