downloadAndExtract: Download source for package

Description Usage Arguments Examples

View source: R/downloadAndExtract.R

Description

Download the source code for an R package on CRAN and extract it. This uses a temporary directory and returns the location of the extracted code.

Usage

1
downloadAndExtract(package, tdir = tempdir())

Arguments

package

Character. Name of the package to download

tdir

Directory to where to store the source code. Defaults to a temporary directory

Examples

1
2
3
4
## Not run: 
downloadAndExtract("reshape2")

## End(Not run)

Dasonk/packageAnalyzeR documentation built on May 6, 2019, 1:38 p.m.