powered by
Gives a list of attached packages (see library), and R objects, usually data.frames.
attach
library
data.frames
search() searchpaths()
A character vector, starting with ".GlobalEnv", and ending with "package:base" which is R's base package required always.
".GlobalEnv"
"package:base"
searchpaths gives a similar character vector, with the entries for packages being the path to the package used to load the code.
searchpaths
Becker, R. A., Chambers, J. M. and Wilks, A. R. (1988) The New S Language. Wadsworth & Brooks/Cole. (search.)
search
Chambers, J. M. (1998) Programming with Data. A Guide to the S Language. Springer. (searchPaths.)
searchPaths
.packages to list just the packages on search path.
.packages
loadedNamespaces to list loaded namespaces.
loadedNamespaces
attach and detach to change the search path, objects to find R objects in there.
detach
objects
Run the code above in your browser using DataLab