[R] How to detect whether a file exists or not?
Dirk Eddelbuettel
edd at debian.org
Thu Feb 12 04:24:28 CET 2004
On Wed, Feb 11, 2004 at 07:22:00PM -0800, Francisco J Molina wrote:
>
> I would like my program to load variables x,y,x from a file 'myFile.r' but
> if this file does not exist, I want my program to create/initialize x,y,z.
>
> Does anyone know how to do this?
?file.info # as help.search("file") would have revealed
Hth, Dirk
--
The relationship between the computed price and reality is as yet unknown.
-- From the pac(8) manual page
More information about the R-help
mailing list