Learn R Programming

R.oo (version 1.7.5)

update.Package: Updates the package is a newer version is available

Description

Updates the package is a newer version is available. If the package is part of a bundle, the whole bundle will be updated. This method is a convientent alternative to update.packages(), especially for non-CRAN packages.

Usage

## S3 method for class 'Package':
update(object, contribUrl=c(getContribUrl(this), getDevelUrl(this)), force=FALSE, reload=TRUE, verbose=TRUE, ...)

Arguments

contribUrl
The URL from where the package can be installed and updated. By default the URL according to the DESCRIPTION is assumed. If the URL is missing, CRAN is assumed.
force
If TRUE, the package will reinstalled even if it is up to date according to the version number.
verbose
If TRUE, more detailed information is returned.
...
Not used.

Value

  • Returns (invisibly) TRUE if the package was updated, otherwise FALSE.

See Also

update.packages. For more information see Package.

Examples

Run this code
update(R.oo)

Run the code above in your browser using DataLab