Re: [R] Path to R script

2010-05-14 Thread Sharpie
Undergraduate-- Environmental Resources Engineering Humboldt State University -- View this message in context: http://r.789695.n4.nabble.com/Path-to-R-script-tp2196648p2216184.html Sent from the R help mailing list archive at Nabble.com. __ R-help@r-project.org

Re: [R] Path to R script

2010-05-13 Thread Johannes W. Dietrich
At 13:19 Uhr -0700 12.05.2010, Shi, Tao wrote: Don't quite understand your question, but it looks like a more IT issue to me. I guess you store your R scripts in a central location (e.g. a server) and everybody call them from their own workstation, right? Thank you, but this would be an

Re: [R] Path to R script

2010-05-13 Thread Johannes W. Dietrich
At 19:29 Uhr -0400 12.05.2010, Gabor Grothendieck wrote: If you are running the file via source(myfile.R) then just put this in the file: this.dir - dirname(sys.frame(1)$ofile) This is a bit fragile since changes to the internals of source could break it but it does currently work. Great,

Re: [R] Path to R script

2010-05-13 Thread Shi, Tao
] Path to R script At 13:19 Uhr -0700 12.05.2010, Shi, Tao wrote: Don't quite understand your question, but it looks like a more IT issue to me. I guess you store your R scripts in a central location (e.g. a server) and everybody call them from their own workstation, right? Thank you

[R] Path to R script

2010-05-12 Thread Johannes W. Dietrich
There is certainly a trivial solution for my question, but I can't find the answer in the documentation. I need a platform independent method to obtain the file path of the current R script. My working group uses R on several machines with different operating systems including Mac OS X

Re: [R] Path to R script

2010-05-12 Thread Erik Iverson
While not a direct answer to your question, do ?getwd and ?setwd help at all? Johannes W. Dietrich wrote: There is certainly a trivial solution for my question, but I can't find the answer in the documentation. I need a platform independent method to obtain the file path of the current R

Re: [R] Path to R script

2010-05-12 Thread Duncan Murdoch
On 12/05/2010 3:31 PM, Johannes W. Dietrich wrote: There is certainly a trivial solution for my question, but I can't find the answer in the documentation. I need a platform independent method to obtain the file path of the current R script. My working group uses R on several machines

Re: [R] Path to R script

2010-05-12 Thread Shi, Tao
group. ...Tao - Original Message From: Johannes W. Dietrich j.w.dietr...@medizinische-kybernetik.de To: r-help@r-project.org Sent: Wed, May 12, 2010 12:31:19 PM Subject: [R] Path to R script There is certainly a trivial solution for my question, but I can't find the answer

Re: [R] Path to R script

2010-05-12 Thread Sharpie
Johannes W. Dietrich wrote: There is certainly a trivial solution for my question, but I can't find the answer in the documentation. I need a platform independent method to obtain the file path of the current R script. My working group uses R on several machines with different

Re: [R] Path to R script

2010-05-12 Thread David Scott
Sharpie wrote: Johannes W. Dietrich wrote: There is certainly a trivial solution for my question, but I can't find the answer in the documentation. I need a platform independent method to obtain the file path of the current R script. My working group uses R on several machines

Re: [R] Path to R script

2010-05-12 Thread David Scott
David Scott wrote: Sharpie wrote: Johannes W. Dietrich wrote: There is certainly a trivial solution for my question, but I can't find the answer in the documentation. I need a platform independent method to obtain the file path of the current R script. My working group uses R on several

Re: [R] Path to R script

2010-05-12 Thread Gabor Grothendieck
...@medizinische-kybernetik.de wrote: There is certainly a trivial solution for my question, but I can't find the answer in the documentation. I need a platform independent method to obtain the file path of the current R script. My working group uses R on several machines with different operating