Re: [R] A question about using getSrcDirectory() with R/Rscript

2011-08-19 Thread Cormac Long
Dear Uwe, Thanks for you suggestion. I should have spotted that (not thinking about the order of commands properly). I still don't know why it failed to work in RGui for me. It works now. I suspect it must be another case of PEBCAK (Problem Exists Between Chair And Keyboard). Best wishes, Cormac.

Re: [R] A question about using getSrcDirectory() with R/Rscript

2011-08-18 Thread Uwe Ligges
Works for me in R-patched: I guess your problem is that you have to set the options() before source()ing. Best, Uwe Ligges On 17.08.2011 10:31, Cormac Long wrote: Good morning R-help, I have an idiot question: I would like to use getSrcDirectory() and friends to allow me to identify wher

[R] A question about using getSrcDirectory() with R/Rscript

2011-08-17 Thread Cormac Long
Good morning R-help, I have an idiot question: I would like to use getSrcDirectory() and friends to allow me to identify where an R file has been called from when invoked using Rscript. If I understand the documentation correctly, the following example should work: In file test.R: options(keep