[R] loading a file in R in mac OS X
Michael Knudsen
micknudsen at gmail.com
Thu Jul 16 14:40:48 CEST 2009
On Thu, Jul 16, 2009 at 1:32 PM, caballo<jamespitts at hotmail.com> wrote:
> Error in file(file, "r") : cannot open the connection
> In addition: Warning message:
> In file(file, "r") :
> cannot open file 'c:\harddrivename\users\username\desktop\schools.txt':
> No such file or directory.
>
> I'm guessing that there's a different way to enter the path name on a
> macintosh?
There is no such thing as a c-drive on a Mac. Try this location instead:
~/Desktop/schools.txt
and note that Mac is case-sensitive. The tilde (~) refers to your home
directory. Alternatively you could write:
/Users/username/Desktop/schools.txt
--
Michael Knudsen
micknudsen at gmail.com
http://lifeofknudsen.blogspot.com/
More information about the R-help
mailing list