Skip to content

Commit

Permalink
install_R_deps.R restored
Browse files Browse the repository at this point in the history
  • Loading branch information
vinuesa committed Sep 18, 2021
1 parent 38270d4 commit c0b8b39
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions install_R_deps.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@
# Instructions to install ape from source, in case it causes kdetrees errors
# In MacOS this requires installing gfortran from https://gcc.gnu.org/wiki/GFortranBinaries
# $ R
# > install.packages("ape",dependencies=TRUE, lib="lib/R", type="source")
# > install.packages("ape", dependencies=TRUE, lib="lib/R", type="source")
# > install.packages("kdetrees",dependencies=TRUE, lib="lib/R", type="source")

repository = 'https://cloud.r-project.org'; #'http://cran.rstudio.com'

# do not change (reduce), as it includes dependencies for the GET_HOM+GET_PHYLO image,
# and from v2.3.0 (2021-09-18) the GET_PHYLO package also includes hcluster_pangenome_matrix.sh, which require "cluster", "dendextend", "factoextra"
# ape and kdetrees are installed from source
required_packages = c("stringr", "vioplot", "ggplot2", "gplots", "dplyr", "seqinr", "plyr", "cluster", "dendextend", "factoextra", "Rcpp")
required_packages = c("ape", "kdetrees", "stringr", "vioplot", "ggplot2", "gplots", "dplyr", "seqinr", "plyr", "cluster", "dendextend", "factoextra")

local_lib = "./lib/R"

Expand All @@ -44,7 +44,7 @@ local_lib = "./lib/R"
#remove.packages(c("ape", "cluster", "dendextend", "factoextra", "kdetrees"), lib=local_lib)

# Install ape && kdetrees from source
install.packages(c("ape", "kdetrees"), dependencies=TRUE, lib="lib/R", type="source")
# install.packages(c("ape", "kdetrees"), dependencies=TRUE, lib="lib/R", type="source")

# install the remaining required R packages
for (package in required_packages) {
Expand All @@ -54,5 +54,4 @@ for (package in required_packages) {
}
}


sessionInfo()

0 comments on commit c0b8b39

Please sign in to comment.