devtools (version 0.2)

install: Install a package.

Description

Install a package.

Usage

install(pkg, reload=TRUE)

Arguments

pkg
package description, can be path or package name. See as.package for more information
reload
if TRUE (the default), will automatically reload the package after installing.

Details

Uses R CMD INSTALL to install the package. Will also try to install dependencies of the package from CRAN, if they're not already installed.

Installation takes place on a copy of the package produced by R CMD build to avoid modifying the local directory in any way.