install packages with minimum count

Share:

Description

install.packages identifed in a findFn object with Count at least minCount.

Usage

1
installPackages(x, minCount=sqrt(x[1, 'Count']), ...)

Arguments

x

either a character vector to be passed to install.packages or a findFn object

minCount

Install all packages identified in x[['Packages']] with x[['Count']] exceeding minCount.

...

optional arguments passed to install.packages

Details

This is useful to prepare for PackageSum2.

Value

none

Author(s)

Spencer Graves

See Also

install.packages PackageSum2

Examples

1
2
3
4
5
6
7
8
9
spl <- findFn("spline", maxPages = 2)
# check the code but do not install anything:
installPackages(spl, minCount=spl[1, 'Count']+1)

# install ALL packages found
## Not run: 
installPackages(spl, 1)

## End(Not run)