pkgDesc {svTools}R Documentation

Get installed or loaded packages, or their description

Description

This is similar to installed.packages() but with two additional columns indicating if the package is loaded and default. Description of packages can be retrieved from the local library, or from the Web (default repository).

Usage

pkgLoaded()
pkgInstalled(pattern = NULL, ...)
pkgDesc(pkg, lib.loc = NULL, fields = NULL, encoding = "")
pkgWebDesc(pkg, repos = getOption("repos"))

Arguments

pattern

filter on the name or the title of the packages.

...

arguments for installed.packages.

pkg

character. The name of a R package.

lib.loc

the local library where the package is localted, or NULL (by default) to search in all known libraries.

fields

which fields do we retrieve. If NULL (by default), all fields in the DESCRIPTION file are returned.

encoding

the encoding to use, or "" for default one.

repos

the repository where to look for the package description.

Value

A matrix similar to the result of installed.packages with two additional columns for pkgInstalled(). A character string for pkgLoaded(), pkgDesc() and pgkWebDesc().

Author(s)

Romain Francois <francoisromain@free.fr>

See Also

installed.packages

Examples

pkgLoaded()
pkgInstalled()
pkgDesc("utils")
## Not run: 
pkgWebDesc("svTools")

## End(Not run)

[Package svTools version 0.9-5 Index]