Detach Data from the Search List

DESCRIPTION:

Removes a database from the search list. The database may be specified by number, by name, or with a logical vector.

USAGE:

detach(what=2, save=F) 

OPTIONAL ARGUMENTS:

what
character string, logical vector, or integer position. If what is a character string, it is the name of the database to be removed from the search list. If what is a logical vector, it should be the same length as the current search list; the vector is replicated if it is shorter than the search list. The TRUE value in the vector corresponds to the database to be detached. If what is numeric, it gives the position of the database in the search list to be detached.
save
logical flag or character string. This argument is not currently supported.

VALUE:

a character vector containing the names of directories and objects on the search list prior to the call to detach.

SIDE EFFECTS:

removes one or more of the objects and directories from the search path. No objects, files, or directories are actually deleted. The function .on.detach is called if it exists in the database.

BUGS:

The save argument is not currently supported.

SEE ALSO:

, , .

EXAMPLES:

detach("abc") 
# Detach the fourth object from the search list.
detach(what=4)