pkg_download: Download packages from the CRAN mirror at Github

Description Usage Arguments Value Examples

Description

The files will be named according to the package names and version numbers.

Usage

1
pkg_download(pkgs, dest_dir = ".")

Arguments

pkgs

Package(s) to download. By default the latest versions are downloaded, a specific version number can be given after a dash.

dest_dir

Destination directory.

Value

A character vector containing the full paths of the downloaded packages.

Examples

1
2
3
dest_dir <- tempdir()
pkg_download("testthat", dest_dir = dest_dir)
pkg_download("testthat-0.8.1", dest_dir = dest_dir)

metacran/rpkg documentation built on May 22, 2019, 7:48 p.m.