Re: [R] space in directory name

2011-09-13 Thread Jean-Christophe BOUËTTÉ
dbonneau > To: r-help@r-project.org > Cc: > Sent: Tuesday, September 13, 2011 10:59 AM > Subject: [R] space in directory name > > Hi, I am trying to read a text file located in following paths. I am getting > error if I try to read from long directory..  But if I place th

Re: [R] space in directory name

2011-09-13 Thread Mikkel Grum
You are missing \\ between Documents and settings and Administrator. - Original Message - From: dbonneau To: r-help@r-project.org Cc: Sent: Tuesday, September 13, 2011 10:59 AM Subject: [R] space in directory name Hi, I am trying to read a text file located in following paths. I am

Re: [R] space in directory name

2011-09-13 Thread Henrik Bengtsson
FYI, by using library("R.utils"); pathname <- "C:\\Documents and Settings Administrator\\My Documents\\My Dropbox\\data.txt"; pathname <- Arguments$getReadablePathname(pathname); data1 <- read.table(pathname, sep="\t", header=TRUE); you would get an explanation what is wrong and helps you troubl

Re: [R] space in directory name

2011-09-13 Thread Ben Bolker
Jean-Christophe BOUËTTÉ gmail.com> writes: > > I suggest changing > Documents and Settings Administrator > to > Documents and Settings\\Administrator > Please don't cross-post to R-help and Stack Overflow. People in both places will gladly answer well-posed questions, but it turns into a was

Re: [R] space in directory name

2011-09-13 Thread Jean-Christophe BOUËTTÉ
I suggest changing Documents and Settings Administrator to Documents and Settings\\Administrator ... JC 2011/9/13 dbonneau : > Hi, I am trying to read a text file located in following paths. I am getting > error if I try to read from long directory..  But if I place the file right > under C, It r

[R] space in directory name

2011-09-13 Thread dbonneau
Hi, I am trying to read a text file located in following paths. I am getting error if I try to read from long directory.. But if I place the file right under C, It runs fine. Could anyone tell me how to read table from following directory path ? data1 <-read.table("C:\\Documents and Settings Adm