Learn R Programming

RDocumentation (version 0.8.1)

install_package: Install a package from CRAN, BioConductor, or GitHub

Description

Install a package from CRAN, BioConductor, or GitHub

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)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab