Learn R Programming

RDocumentation (version 0.5)

install_package: Installs the given package

Description

Installs the given package

Usage

install_package(mypkg, type)

Arguments

mypkg
the name of the package you want to install
type
the type of the package, type 1 means the package comes from CRAN, type 2 packages are from bioconductor, type 3 packages are from github and type 4 packages are by default part of R.

Examples

Run this code
## Not run
## install_package("dplyr",1)
## install_package("Rdocumentation",3)

Run the code above in your browser using DataLab