Rev 48357 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
% File src/library/utils/man/getAnywhere.Rd% Part of the R package, http://www.R-project.org% Copyright 1995-2007 R Core Development Team% Distributed under GPL 2 or later\name{getAnywhere}\alias{getAnywhere}\alias{argsAnywhere}\alias{[.getAnywhere}\alias{print.getAnywhere}\title{Retrieve an R Object, Including from a Name Space}\description{These functions locate all objects with name matching their argument,whether visible on the search path, registered as an S3 method or in aname space but not exported. \code{getAnywhere()} returns the objectsand \code{argsAnywhere()} returns the arguments of any objects thatare functions.}\usage{getAnywhere(x)argsAnywhere(x)}\arguments{\item{x}{a character string or name.}}\details{The functions look at all loaded name spaces, whether or not they areassociated with a package on the search list.The functions do not search literally \dQuote{anywhere}: forexample, local evaluation frames and namespaces that are not loadedwill not be searched.Where functions are found as an S3 method, an attempt is made to findwhich name space registered them. This may not be correct, especiallyif a name space is unloaded.}\value{For \code{getAnywhere()} an object of class \code{"getAnywhere"}. This is a list with components\item{name}{the name searched for.}\item{objs}{a list of objects found}\item{where}{a character vector explaining where the object(s) were found}\item{visible}{logical: is the object visible}\item{dups}{logical: is the object identical to one earlier in thelist.}Normally the structure will be hidden by the \code{print} method.There is a \code{[} method to extract one or more of the objectsfound.For \code{argsAnywhere()} one or more argument lists as returned by \code{\link{args}}.}\seealso{\code{\link{get}}, \code{\link{getFromNamespace}}, \code{\link{args}}}\examples{getAnywhere("format.dist")getAnywhere("simpleLoess") # not exported from statsargsAnywhere(format.dist)}\keyword{data}