# Installation
# Dependencies
TACOS (opens new window) depends on the following R libraries (version):
- data.table (>=1.14.6)
- ggplot2 (>= 3.4.0)
- pheatmap (>= 1.0.12)
- RColorBrewer (>=1.1-3)
These dependencies could be downloaded through CRAN and installed as follows.
Cpak <- function(pkg){
new.pkg <- pkg[!(pkg %in% installed.packages()[, "Package"])]
if (length(new.pkg)) install.packages(new.pkg, dependencies = TRUE, repos="http://cran.cnr.berkeley.edu/")
sapply(pkg, require, character.only = TRUE)
}
packages <- c("data.table","ggplot2","pheatmap","RColorBrewer")
Cpak(packages)
# Installation from source
TACOS (opens new window) can be easily installed using devtools. This should also take care of the dependencies listed above.
install.packages("devtools") #if not installed yet
devtools::install_github("littleisland8/TACOS")
library(TACOS)
Alternatively, a source package in tar.gz format is available to be downloaded.
wget https://github.com/littleisland8/TACOS/releases/tag/1.0/tacos_1.0.tar.gz
The source file can then be installed within R. Dependencies must be installed beforehand.
install.packages("/path/to/tacos_1.0.tar.gz ", repos=NULL)
library(TACOS)