Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-05 Thread John Kane
Sent: Fri, 4 May 2012 18:35:31 -0700 > To: r-help@r-project.org > Subject: Re: [R] Cannot read or write to file in Linux Ubuntu > > On Thu, 3 May 2012 10:50:46 -0800 > John Kane wrote: > >> Thanks Jeff and Sarah. >> >> I was thinking mainly of using the base

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-04 Thread John
On Thu, 3 May 2012 10:50:46 -0800 John Kane wrote: > Thanks Jeff and Sarah. > > I was thinking mainly of using the base path and paste routine which > is something I do in Windows > > It will take me a while to figrue out relative paths. > Relative paths are not a mystery nor are they so

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
hu, 3 May 2012 14:07:12 -0400 > To: jdnew...@dcn.davis.ca.us > Subject: Re: [R] Cannot read or write to file in Linux Ubuntu > > On Thu, May 3, 2012 at 1:53 PM, Jeff Newmiller > wrote: >> "I like the idea of staying with absolute paths." >> >> Before you

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread Sarah Goslee
On Thu, May 3, 2012 at 1:53 PM, Jeff Newmiller wrote: > "I like the idea of staying with absolute paths." > > Before you write too much R code that builds in absolute paths, please > consider how difficult it will be to adjust all of those paths if you need to > run on a different computer or yo

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread Jeff Newmiller
t;so >mydata <- read.csv("/home/john/rdata/tti.csv", header = TRUE) > works just fine. I like the idea of staying with absolute paths. > >I am most appreciative. > >John Kane >Kingston ON Canada > > >> -Original Message- >> From: sarah.gos...@g

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
header = TRUE) works just fine. I like the idea of staying with absolute paths. I am most appreciative. John Kane Kingston ON Canada > -Original Message- > From: sarah.gos...@gmail.com > Sent: Thu, 3 May 2012 12:29:14 -0400 > To: jrkrid...@inbox.com > Subject: Re: [R] Can

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
box.com, r-help@r-project.org > Subject: Re: [R] Cannot read or write to file in Linux Ubuntu > > All of your tests are with relative paths. Use getwd() identify your > starting directory, and if it isn't you can use set

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread Jeff Newmiller
All of your tests are with relative paths. Use getwd() identify your starting directory, and if it isn't you can use setwd() to start in the right place. --- Jeff NewmillerThe . . Go

Re: [R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread Sarah Goslee
Hi John, You're probably messing up the path, just as you suspect. If you use a relative path, like you are doing, then R looks for that location starting at R's current working directory, visible with getwd(). For linux, that's the location at which you started R if you started it from a termina

[R] Cannot read or write to file in Linux Ubuntu

2012-05-03 Thread John Kane
I am the proud owner of a new laptop since my old one died the other day. Currently I have a dual-boot Windows 7 Home and Ubuntu 12.04 . I'll leave the Windows problems for another post. I know practically nothing about Linux so I am probably doing something stupid but ... at the moment I cann