[R] Problem reading from a file

Nick Angelou nikolay12 at yahoo.com
Thu Jun 18 13:03:08 CEST 2009


Hi all,

I have written a function

cluster_compare(myfile, mclfile)

I called it giving names of files in the working directory (I see them with
dir()). I get 

Error in file("myfile", "r") : cannot open the connection
In addition: Warning message:
In file("myfile", "r") :
  cannot open file 'myfile': No such file or directory

I tried even calling the function like that:

myfile <- file.choose()
mclfile <- file.choose()
cluster_compare(myfile, mclfile)

where I interactively select the files. Yet, I get the same error again.
It's quite puzzling. Any advice? (fyi - I'm on Vista)

regards,

Nick

-- 
View this message in context: http://www.nabble.com/Problem-reading-from-a-file-tp24090764p24090764.html
Sent from the R help mailing list archive at Nabble.com.




More information about the R-help mailing list