getPackages: getPackages

Description Usage Arguments Examples

View source: R/z_deprecated.R

Description

This function takes a package and returns a list of its dependencies. Good for downloading source files of packages to install on a R server where internet access is blocked.

Usage

1
getPackages(packs)

Arguments

packs

a quoted package name or list of package names

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# use this to get specifically named packages and their dependencies:
packages <- getPackages('pbapply')
# use this to get all packages installed on local machine and their dependencies:
# packages <- getPackages(row.names(installed.packages()))
# then download the packages:
download.packages(packages, destdir='.',type='source')

## End(Not run)

cole-brokamp/CB documentation built on May 13, 2019, 8:49 p.m.