[R] cleaning up after example()

Anne York york at noaa.gov
Tue Dec 17 17:22:04 CET 2002


The example() and demo() functions are very useful and they do
clutter up workspaces. 

For that reason, I run them (usually, I remember to do is)  in
a demo  workspace.  That way, I don't care about the objects or saving them
etc. This makes cleaning up unnecessary. 

Anne

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anne E. York
National Marine Mammal Laboratory
Seattle WA 98115-0070  USA
e-mail: york at ofis450a.akctr.noaa.gov
Voice: +1 206-526-4039
Fax: +1 206-526-6615
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


++++++++++++++++++++++++++++++++++++++++++
Date: Mon, 16 Dec 2002 22:33:27 -0500
From: "Liaw, Andy" <andy_liaw at merck.com>
To: "'r-help at stat.math.ethz.ch'" <r-help at stat.math.ethz.ch>
Subject: [R] cleaning up after example()

Dear R-help,

I find the example() function is extremely useful in many ways.  However,
there's a minor inconvenience: for long examples, it leaves lots of objects
in the workspace.  While it's sometimes useful to have the objects around
for further exploration, other times they just add to the clutter.  Does
anyone have a good way of cleaning up afterward?  If not, would R core
consider adding such a feature?

Cheers,
Andy





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Anne E. York
National Marine Mammal Laboratory
Seattle WA 98115-0070  USA
e-mail: anne.york at noaa.gov
Voice: +1 206-526-4039
Fax: +1 206-526-6615
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~




More information about the R-help mailing list