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

Francisco J Molina fjmolina at ams.ucsc.edu
Thu Feb 12 04:22:00 CET 2004


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




More information about the R-help mailing list