Hi Christian, I suppose that you are doing this in a loop and is stopping.
Have a look at the function try() ?try Try an Expression Allowing Error Recovery. Description: `try' is a wrapper to run an expression that might fail and allow the user's code to handle error-recovery. Usage: try(expr, first = TRUE) regards, Jesus -------------------------------------------------------------- Jesús María Frías Celayeta School of Food Sci. and Env. Health. Faculty of Tourism and Food Dublin Institute of Technology Cathal Bruha St., Dublin 1. Ireland Phone: +353 1 4024459 Fax: +353 1 4024495 http://www.dit.ie/DIT/tourismfood/science/staff/frias.html -------------------------------------------------------------- > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of > [EMAIL PROTECTED] > Sent: 28 January 2003 14:59 > To: [EMAIL PROTECTED] > Subject: [R] reading non-existent files > > > Dear R-experts > > I would like to read all files from a directory, the files have names > "myname0001.txt" etc. I paste the directory plus file names and > use "read.delim()". > My problem is that some file names are missing, so I get an error > and my program stops. > Is there a way to check for a null pointer analogous to C, so that > I can simply skip non-existent filenames? > > Please do "Reply to all" since in the company I am not subscribed > to the R-help list. > > Thank you in advance > Best regards > Christian Stratowa > > ============================================== > Christian Stratowa, PhD > Boehringer Ingelheim Austria > Dept NCE Lead Discovery - Bioinformatics > Dr. Boehringergasse 5-11 > A-1121 Vienna, Austria > Tel.: ++43-1-80105-2470 > Fax: ++43-1-80105-2683 > email: [EMAIL PROTECTED] > > ______________________________________________ > [EMAIL PROTECTED] mailing list > http://www.stat.math.ethz.ch/mailman/listinfo/r-help > > -- > This message has been scanned for viruses by > the DIT Computer Centre MailScanner Service, > and is believed to be clean. > -- This message has been scanned for viruses by the DIT Computer Centre MailScanner Service, and is believed to be clean. ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help