pkgDesc: Get installed or loaded packages, or their description

Description Usage Arguments Value Author(s) See Also Examples

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

1
2
3
4
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

1
2
3
4
5
6
7
pkgLoaded()
pkgInstalled()
pkgDesc("utils")
## Not run: 
pkgWebDesc("svTools")

## End(Not run)

svTools documentation built on May 2, 2019, 3:21 a.m.