-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInstall_required_packages.R
30 lines (26 loc) · 1.67 KB
/
Install_required_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
# AB332 2023
# Please make sure that you have the required R packages installed.
# You can get a list of the package already installed on your computer by executing
installed.packages()
# in R alternatively you can just run the installation for each package
# to make sure that you have the latest version.
# Run these installation commands line-by-line in R (or Rstudio)
# and answer "yes" if you are asked to update any previously installed pakages:
# If you are asked if you want to compile from source it is usually easiest to answer "no"
# install.packages("ggplot2") # To do plots, included in tidyverse package collection
install.packages("tidyverse") # To manipulate and visualize data https://www.tidyverse.org/packages/
install.packages("vegan") # For ecology analyses
install.packages("ape") # Phylogenetic tools
install.packages("recluster") # Clustering tools
install.packages("dendextend") # To work with dendrograms
install.packages("corrplot") # makes nice correlation plots
install.packages("RcmdrMisc") # diverse tools
# Packages from Bioconductor: (https://www.bioconductor.org/)
if (!requireNamespace("BiocManager", quietly = TRUE)) install.packages("BiocManager")
BiocManager::install(c("PCAtools","mixOmics"))
# Packages from github:
if (!requireNamespace("devtools", quietly = TRUE)) install.packages("devtools")
devtools::install_github("fawda123/ggord")
# This package might cause a problem. Here are some possible solutions:
# https://thecoatlessprofessor.com/programming/cpp/r-compiler-tools-for-rcpp-on-macos/
# https://stackoverflow.com/questions/37776377/error-when-installing-an-r-package-from-github-could-not-find-build-tools-neces