Re: [R] last 2 questions about save and load

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sun 09 Jul 2006 - 17:37:14 EST

On Sat, 8 Jul 2006, markleeds@verizon.net wrote:

> i played around and i get the hang of save and load. I just
> have two final questions :
>
> 1) is loading the RandomFields package the only
> way to check if a file ( created through the save function )
> is out there or not ? Because, I generally won't know if one has
> been created yet or not.

Of course not: See ?file.exists and ?file.info. (RandomFields::FileExists itself depends on file.exists and has a different purpose.)

> 2) Suppose, you have the case where you
> created and saved a file. When you do an ls()
> without loading that file, it doesn't show up in the list
> obviously. So, if you want to delete that file for whatever
> reason, is it possible ? Thanks.

ls() returns a list of (some) R objects: it has nothing to do with files. Now save()d files contain images of R objects, but the name of the file has nothing to do with the names of the object(s) it contains.

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Sun Jul 09 17:46:04 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Mon 10 Jul 2006 - 00:16:11 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.