zpackages {base} | R Documentation |
Listing of Packages
Description
.packages
returns information about package availability.
Usage
.packages(all.available = FALSE, lib.loc = NULL)
Arguments
all.available |
logical; if |
lib.loc |
a character vector describing the location of R
library trees to search through, or |
Details
.packages()
returns the “base names” of the currently
attached packages invisibly whereas
.packages(all.available = TRUE)
gives (visibly) all
packages available in the library location path lib.loc
.
Value
A character vector of package “base names”, invisible unless
all.available = TRUE
.
Author(s)
R core;
Guido Masarotto for the all.available=TRUE
part of
.packages
.
See Also
library
, .libPaths
.
Examples
(.packages()) # maybe just "base"
.packages(all = TRUE) # return all available as character vector
require(splines) # the same
(.packages()) # "splines", too
detach("package:splines")