.packages(all.available=FALSE, lib.loc=NULL, paths=FALSE)
lib.loc
argument or in the S-PLUS library
and module directories.
By default, only attached packages will be included, unless
all.available=TRUE
. Only the base names of packages will be returned, unless
paths=TRUE
.
This function emulates the R function
.packages
,
but with a few exceptions noted below.
R requires that a package directory have a DESCRIPTION file having a valid 'version' field, but the S-PLUS version of this function requires the existence of either a DESCRIPTION file or a .Data directory in the package directory.
The R version of this function returns its value invisibly unless
all.available=TRUE
, but the return value of
the S-PLUS version is always visible.
The R version of this function does not include the
paths
argument.
# the default output will be similar to search(), but not include # the working database .packages() # list all available libraries and their full paths .packages(all.available=T, paths=T)