Re: [R] Current script name from R

2010-07-09 Thread Allan Engelhardt
On 09/07/10 12:18, Ralf B wrote: I am using RGUI, the command line or the StatET Eclipse environment. Should this not all be the same? No, there is no particular reason why they should. Allan Ralf On Fri, Jul 9, 2010 at 7:11 AM, Allan Engelhardt wrote: I'm assuming you are using

Re: [R] Current script name from R

2010-07-09 Thread Ralf B
I am using RGUI, the command line or the StatET Eclipse environment. Should this not all be the same? Ralf On Fri, Jul 9, 2010 at 7:11 AM, Allan Engelhardt wrote: > I'm assuming you are using Rscript (please provide self-contained examples > when posting) in which case you could look for the el

Re: [R] Current script name from R

2010-07-09 Thread Allan Engelhardt
I'm assuming you are using Rscript (please provide self-contained examples when posting) in which case you could look for the element in (base|R.utils)::commandArgs() that begin with the string "--file=" - the rest is the file name. See the asValues= parameter in help("commandArgs", package="R

[R] Current script name from R

2010-07-09 Thread Ralf B
Is there a way for a script to find out about its own name ? Ralf __ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minim