-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpackage_installation.txt
36 lines (22 loc) · 1.37 KB
/
package_installation.txt
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
install.packages("https://cran.r-project.org/src/contrib/Archive/RandomFieldsUtils/RandomFieldsUtils_1.2.5.tar.gz", repos = NULL, type = "source")
install.packages("sp")
install.packages("https://cran.r-project.org/src/contrib/Archive/RandomFields/RandomFields_3.3.14.tar.gz", repos = NULL, type = "source")
install.packages(c("checkmate", "dplyr", "raster", "spatstat.geom", "igraph", "fasterize", "sf", "Rcpp"))
install.packages(c("spatstat.random", "spatstat.sparse", "abind", "tensor", "goftest"))
install.packages("https://cran.r-project.org/src/contrib/Archive/spatstat.core/spatstat.core_2.4-4.tar.gz", repos = NULL, type = "source")
#### Install and Load necessary packages ####
install_packages <- function(packages) {
for (package in packages) {
if (!requireNamespace(package, quietly = TRUE)) {
install.packages(package)
}
library(package, character.only = TRUE)
}
}
# Packages to install and load
packages <- c("arrow", "sf", "raster", "fasterize", "rgeos", "tidyr", "readr", "dplyr", "units", "mgcv",
"foreach", "doParallel", "parallelly", "ranger", "tidyverse", "kableExtra", "ggplot2", "patchwork", "viridis")
install_packages(packages)
install.packages("devtools")
devtools::install_github("pedersen-fisheries-lab/sspm")
install.packages("https://cran.r-project.org/src/contrib/Archive/NLMR/NLMR_1.1.tar.gz", repos = NULL, type = "source")