[R] Checking the existence of a file

Martyn Plummer plummer at iarc.fr
Thu Jun 15 11:39:54 CEST 2000


On 15-Jun-00 Jonathan Myles wrote:
> 
> Is there a platform-independent way of checking in R whether a 
> given file exists in the user's filespace? 
> 
> (so in a unix system, can you check within R whather, say, 
> 
>  /homef/jonm/thisfile
> 
>  exists)

The function file.exists() will do this. See the help page for
related useful functions.

Martyn
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list