# Installation

# Dependencies

NanoR (opens new window) depends on the following R libraries (versions):

  • plotly (>= 4.9.4.1)
  • scales (>= 1.1.1)
  • data.table (>= 1.14.0)
  • dplyr (>= 1.0.7)
  • tidyr (>= 1.1.3)

All the dependencies above are available through the Comprehensive R Archive Network (CRAN) and can be easily 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("plotly","scales","data.table","dplyr","tidyr")
Cpak(packages)

# Installation from source

NanoR (opens new window) can be easily installed using devtools (opens new window). This should also take care of the dependencies listed above.

install.packages("devtools") #if not installed yet
devtools::install_github("davidebolo1993/NanoR")
library(NanoR)
#citation("NanoR")

Alternatively, a source package in tar.gz format is available to be downloaded.

wget https://github.com/davidebolo1993/NanoR/releases/download/v4.0/NanoR.tar.gz

The source file can then be installed from within R. Dependencies must be installed beforehand.

install.packages("/path/to/NanoR.tar.gz", repos=NULL)
library(NanoR)
#citation("NanoR")