[R] Fwd: Re: read.table (Error in file(file, "r") : unable to open connection)

From: Richard M. Heiberger <rmh_at_temple.edu>
Date: Tue 09 May 2006 - 12:00:21 EST


or use forward slashes, exactly the same as in Unix. This has the advantage of being portable, especially if you make it relative to a starting directory.

read.table("c:/a/b/c.dat")
read.table("c:\\a\\b\\c.dat")
---- Original message ----
>Date: Tue, 9 May 2006 09:42:03 +0800
>From: ronggui <ronggui.huang@gmail.com>
>Subject: Re: [R] read.table (Error in file(file, "r") : unable to open connection)
>To: "David.Lowery@csiro.au" <David.Lowery@csiro.au>
>Cc: r-help@stat.math.ethz.ch
>
>I guess you use R under windows,then use \\ instead of \.
>
>or use file.choose() to choose the file directly.
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue May 09 12:06:52 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 09 May 2006 - 20:10:00 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.