ipak: Unified installer for CRAN, Bioconductor, and GitHub packages

View source: R/ipak.R

ipakR Documentation

Unified installer for CRAN, Bioconductor, and GitHub packages

Description

Takes a vector of package names and installs them. Requires specifying repository type.

Usage

ipak(pkg, repository = c("CRAN", "Bioconductor", "github"))

Arguments

pkg

package names in a character vector

repository

one of "CRAN", "Bioconductor", "github". Indicates from which repository to install packages.

Note

Modified after powsimR installation instructions

Examples

## Not run: 
# CRAN packages
cranpackages <- c("tidyverse", "data.table")
ipak(cranpackages, repository = "CRAN")
# Bioconductor
biocpackages <- c("limma", "SingleCellExperiment")
ipak(biocpackages, repository = "Bioconductor")
# GitHub
githubpackages <- c("nanxstats/ggsci", "slowkow/ggrepel")
ipak(githubpackages, repository = "github")

## End(Not run)

mdozmorov/MDmisc documentation built on Aug. 24, 2022, 9:18 a.m.