?file.exists
On 12/03/2009 11:31 AM, Sergey Goriatchev wrote:>
> Hello, everyone
>
> How would I check in R if a particular file (Excel file) is in a
> particular folder on a particular drive?
> I am writing a piece of code around that file, using xls.open() in
> xlsReadWritePro to open the file in memory and use it. But before I
> try to open the file I want to catch the possibility of the file not
> being on the drive.
>
> Thank you in advance!
>
> SG
--
Romain Francois
Professional R Enthusiast
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr
|- http://tr.im/Gq7i : ohloh
|- http://tr.im/FtUu : new package : highlight
`- http://tr.im/EAD5 : LondonR slides