remove(list, frame=<<see below>>, where=<<see below>>, meta=0)
frame=0 is also a legal argument, meaning the session frame; i.e.,
those objects created by
assign with
frame=0.
where=2, for example, removes an object from the second database.
If
where is a character string, this is taken as the path name for a
directory in the file system.
The directory need not be on the search list.
where and
frame are omitted,
removal is only permitted if the object came from the
working database.
If both
where and
frame are specified, then
frame is ignored.
an ordinary S-PLUS database.
"documentation") a meta-database storing documentation
objects.
rm is called from withing a function,
by default it removes objects from the working directory, leaving objects local
to the function untouched.
Removals are "committed" like assignments.
That is, if the
frame argument is given, removal will be immediate
but otherwise the removal will only be unrevokably carried out when
the top level expression completes without error.
The
rm function performs a similar task; it only removes objects from the
working directory but takes the names of an arbitrary number of objects.
remove(c("abc", "def")) # remove "abc" and "def"
rm(abc, def) # also removes "abc" and "def"
remove(ls("foo*")) # remove all objects whose name begins with "foo"