search {base}R Documentation

Give Search Path for R Objects

Description

Gives a list of attached packages (see library), and R objects, usually data.frames.

Usage

search()
searchpaths()

Value

A character vector, starting with ".GlobalEnv", and ending with "package:base" which is R's base package required always.

searchpaths gives a similar character vector, with the entries for packages being the path to the directory from which the namespace was loaded.

References

Becker RA, Chambers JM, Wilks AR (1988). The New S Language. Chapman and Hall/CRC, London. (search.)

Chambers JM (1998). Programming with Data. Springer, New York. ISBN 978-0-387-98503-9. (searchpaths.)

See Also

.packages to list just the packages on the search path, and path.package for the associated directories.

loadedNamespaces to list loaded namespaces.

attach and detach to change the search path, objects to find R objects in there.

Examples

search()
searchpaths()

[Package base version 4.6.0 Index]