retrieve {tutoR}R Documentation

Mask of getAnywhere().

Description

After validation of input received, functionality of 'getAnywhere' is performed. When a required package is not already loaded, the user is prompted and the package loaded.

Usage

retrieve(x)

Arguments

x a character string or name.

Details

A search is performed among all loaded packages. Upon the requested object not being found, a search is performed among all available packages. The User is then prompted for the relevant package to be loaded, before proceeding as with 'getAnywhere'.

Value

An object of class '"getAnywhere"'. This is a list with components

name the name searched for.
objs a list of objects found
where a character vector explaining where the object(s) were found
visible logical: is the object visible
dups logical: is the object identical to one earlier in the list.


Normally the structure will be hidden by the 'print' method. There is a '[' method to extract one or more of the objects found.

See Also

getAnywhere

Examples

data1 <- retrieve(cars)

## If 'boot' Package not already loaded, getAnywhere could be unclear
getAnywhere(acme)
## But retrieve will locate and load the required package.
data2 <- retrieve(acme)

[Package tutoR version 0.3.2 Index]