Skip to content

Commit

Permalink
add install trias
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderDevisscher committed Dec 20, 2023
1 parent 435ed5d commit 66636c2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/install_packages_get_griis.R
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
# get packages installed on machine
installed <- rownames(installed.packages())
# specify packages we need
required <- c("tidyverse", "rgbif", "tidylog", "janitor", "here", "trias"
required <- c("tidyverse", "rgbif", "tidylog", "janitor", "here", "devtools"
)
# install packages if needed
if (!all(required %in% installed)) {
pkgs_to_install <- required[!required %in% installed]
print(paste("Packages to install:", paste(pkgs_to_install, collapse = ", ")))
install.packages(pkgs_to_install, repos = "https://cran.r-project.org/")
}

# install trias
devtools::install_github("trias-project/trias")

0 comments on commit 66636c2

Please sign in to comment.