getAnywhere()
returns the objects
and argsAnywhere()
returns the arguments of any objects that
are functions.
getAnywhere(x)
argsAnywhere(x)
getAnywhere()
an object of class "getAnywhere"
.
This is a list with components
print
method.
There is a [
method to extract one or more of the objects
found.For argsAnywhere()
one or more argument lists as returned by
args
.
They do not search literally anywhere: for example, local evaluation frames and namespaces that are not loaded will not be searched.
Where functions are found as registered S3 methods, an attempt is made to find which namespace registered them. This may not be correct, especially if namespaces have been unloaded.
getS3method
to find the method which would be used: this
might not be the one of those returned by getAnywhere
since it
might have come from a namespace which was unloaded or be registered
under another name.getAnywhere("format.dist")
getAnywhere("simpleLoess") # not exported from stats
argsAnywhere(format.dist)
Run the code above in your browser using DataLab