Re: [R] reading non-existing files

From: Patrick Connolly <p.connolly_at_hortresearch.co.nz>
Date: Wed 08 Jun 2005 - 09:15:07 EST

On Tue, 07-Jun-2005 at 09:48AM -0700, Dave Evens wrote:

|>
|> Dear all,
|>
|> I'm trying to read to a collection of files in a loop
|> using odbcConnectExcel - but not all of the files
|> exist. This is the code I have

Try try().

Use a condition on what you get back to avoid attempting to do things to empty files.

?try will be a good place to start.

-- 
Patrick Connolly
HortResearch
Mt Albert
Auckland
New Zealand 
Ph: +64-9 815 4200 x 7188
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~
I have the world`s largest collection of seashells. I keep it on all
the beaches of the world ... Perhaps you`ve seen it.  ---Steven Wright 
~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~.~

______________________________________________
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 Wed Jun 08 09:20:58 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:32:27 EST