install.rpkg: Install R packages

Description Usage Arguments Value Examples

View source: R/install.rpkg.R

Description

Install R packages

Usage

1
install.rpkg(cran.pkg = NULL, bioconductor.pkg = NULL, github.pkg = NULL)

Arguments

cran.pkg

character. names of packages available in cran repository.

bioconductor.pkg

character. names of packages available in bioconductor.

github.pkg

character. names of packages available in github.

Value

Returns a character vector of newly installed packages. A warning is generated if any package could not be installed.

Examples

 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
cran.pkg = c(
  "Rdpack", "Rcpp",
  "foreach", "doParallel", "flock",
  "igraph", "data.table", "dplyr", "tidyr", "reshape2",
  "argparser",
  "MASS", "PRROC", "lme4", "svd", "stringr", "feather",
  "ggplot2", "cowplot", "corrplot", "RColorBrewer", "gridExtra",
  "MatrixEQTL",
  "Seurat",
  "msigdbr",
  "corpcor", "glasso", "ppcor", "infotheo"
)
bioconductor.pkg = c(
  "SharedObject",
  "STRINGdb", "KEGGgraph", "biomaRt", "Biostrings",
  "limma", "edgeR", "DESeq2", "sva",
  "IRanges", "GenomicRanges",
  "GENIE3", "minet", "WGCNA"
)
github.pkg = c(
  "alorchhota/autil/ioutil",
  "alorchhota/autil/miscutil",
  "alorchhota/autil/genomicsutil",
  "alorchhota/autil/mappabilityutil"
)
install.rpkg(cran.pkg, bioconductor.pkg, github.pkg)

alorchhota/rpkg documentation built on Feb. 9, 2021, 8:33 a.m.