[R] How to check if file is on a drive?

Romain Francois romain.francois at dbmail.com
Thu Dec 3 11:33:05 CET 2009


?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




More information about the R-help mailing list