Learn R Programming

assertive (version 0.3-0)

is_package_current: Is the installed version of a package current?

Description

Checks to see if the installed version of a package is current.

Usage

is_package_current(x, lib.loc = .libPaths(), repos = getOption("repos"),
  type = getOption("pkgType"))

Arguments

x
A string giving a package name.
lib.loc
A character vector of paths to local package libraries.
repos
A character vector of URLs to repositories to check for new package versions.
type
Check the repository for source or binary packages?

Value

  • The is_* functions return TRUE or FALSE. The assert_* functions throw an error in the event of failure.

See Also

old.packages, on which this is based, which has advanced usage features.

Examples

Run this code
# This test is marked "dont-test" since it involves a connection to
# repositories which is potentially long running.
is_package_current("assertive")

Run the code above in your browser using DataLab