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

Richard M. Heiberger rmh at temple.edu
Tue May 9 04:00:21 CEST 2006


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 at gmail.com>  
>Subject: Re: [R] read.table (Error in file(file, "r") : unable to open connection)  
>To: "David.Lowery at csiro.au" <David.Lowery at csiro.au>
>Cc: r-help at stat.math.ethz.ch
>
>I guess you use R under windows,then use \\ instead of \.
>
>or use file.choose() to choose the file directly.
>




More information about the R-help mailing list