[R] How to detect whether a file exists or not?

2004-02-11 Thread Francisco J Molina
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? Thank you very much. Francisco J. Molina __ [EMAIL PROTECTED]

Re: [R] How to detect whether a file exists or not?

2004-02-11 Thread Dirk Eddelbuettel
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

Re: [R] How to detect whether a file exists or not?

2004-02-11 Thread Roger D. Peng
Even better, file.exists(). -roger Dirk Eddelbuettel wrote: 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

RE: [R] How to detect whether a file exists or not?

2004-02-11 Thread Gabor Grothendieck
] To: r-help [EMAIL PROTECTED] Subject: [R] How to detect whether a file exists or not? 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? Thank you very much

Re: [R] How to detect whether a file exists or not?

2004-02-11 Thread Jeff Gentry
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.exists __ [EMAIL PROTECTED] mailing list