[R] read.csv does not find my file (windows xp)

Ralf B ralf.bierig at gmail.com
Thu Jun 24 19:02:54 CEST 2010


I try to load a file

myData <- read.csv(file="C:\\myfolder\\mysubfolder\\mydata.csv",
head=TRUE, sep=";")

and get this error:

Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
  cannot open file 'C:\myfolder\mysubfolder\mydata.csv: No such file
or directory

am I overlooking something?

I am getting the same error when I write the path in '/' notation...
Does R not tolorate drive letters?

Ralf



More information about the R-help mailing list