Description Usage Arguments Details Value Author(s) See Also Examples
Ensure that the most important packages
in x
are installed. "Importance" here is
defined in the description of the minCount
argument below.
1 2 3 4 5 6 | installPackages(x, minCount, ...)
## S3 method for class 'findFn'
installPackages(x, minCount, ...)
## S3 method for class 'packageSum'
installPackages(x, minCount,
repos = getOption("repos"), ...)
|
x |
either a character vector to be passed to
|
minCount |
Controls how many of the packages identified in
If |
repos |
argument passed to
|
... |
optional arguments passed to
|
Functions PackageSum2
and
packageSum
obtain some of the information
displayed from installed packages. To get more
information in those summaries, run
installPackages
on a findFn
or
packageSum
object to install more
of the packages found.
none
Spencer Graves
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ##
## 1. findFn object
##
spl <- findFn("spline", maxPages = 2)
# check the code but do not install anything:
installPackages(spl, minCount=spl[1, 'Count']+1)
# default: install packages with
# Count>=minCount
## Not run:
installPackages(spl)
## End(Not run)
##
## 2. packageSum object
##
splS <- packageSum(spl)
# check the code but do not install anything:
installPackages(splS, splS[1, 'Count']+1)
# install ALL packages
## Not run:
installPackages(splS, 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.