[Rd] Rscript on Windows

2007-01-25 Thread Gabor Grothendieck
On UNIX one can use #! notation. It would be nice to be able to do something similar on Windows. This could be done by giving Rscript the capability of skipping over the first few lines. For example, there might be a --skip=n argument or perhaps Rscript would skip over any consecutive leading li

Re: [Rd] Rscript on Windows

2007-01-26 Thread Vladimir Eremeev
ActivePerl has '-x' switch which tells it to skip all lines in the file till "#!". This allows writing perl scripts in ordinary .bat files. ?shQuote contains a link with the following perl script example: ===8<=== @echo off :: hello.bat :: Windows executable Perl script :: Note: :: assumes perl

Re: [Rd] Rscript on Windows

2007-01-26 Thread Gabor Grothendieck
Good idea. ruby seems to work the same way. python does too but with a slightly different definition: C:\> ruby -h | findstr strip -x[directory] strip off text before #!ruby line and perhaps cd to directory C:\> perl -h | findstr strip -x[directory] strip off text before #!perl line and

Re: [Rd] Rscript on Windows

2007-01-29 Thread Gabor Grothendieck
Haven't got any feedback on this one. Will we be getting a perl/python/ruby style -x switch for Rscript for R 2.5.0? It certainly would give more flexibility to users of Rscript on non-UNIX systems where #! notation is not available. On 1/26/07, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > Go

Re: [Rd] Rscript on Windows

2007-02-16 Thread Gabor Grothendieck
I mentioned this twice already and no one answered;however, I am mentioning this a third time since its a serious deficiency. The Rscript facility that is upcoming in R is useful but on Windows one will often be relegated to having two files: a batch file and an R file unless the -x switch is imp

Re: [Rd] Rscript on Windows

2007-02-17 Thread Duncan Murdoch
On 2/16/2007 9:35 AM, Gabor Grothendieck wrote: > I mentioned this twice already and no one answered;however, I am mentioning > this a third time since its a serious deficiency. I agree this would be a reasonable addition, but I wouldn't class it as a serious deficiency, and I don't plan to wo

Re: [Rd] Rscript on Windows

2007-02-17 Thread Gabor Grothendieck
I think its best if core mods are done by the core group while others focus on work that can be done external to the core. Thus, what I have done is to enhance the batchfiles distribution with 3 new batchfiles: Rscript.bat, #Rscript.bat and runR.bat which will be part of the next distribution of b

Re: [Rd] Rscript on Windows

2007-02-17 Thread Duncan Murdoch
On 2/17/2007 7:31 AM, Gabor Grothendieck wrote: > I think its best if core mods are done by the core group while others > focus on work that can be done external to the core. Fair enough, but then you also have to accept that the core group is going to set the priorities. As far as I know *nobod

Re: [Rd] Rscript on Windows

2007-02-17 Thread Gabor Grothendieck
Surely R has higher standards than that. How about quality and completeness of implementation? Every other major scripting language has implemented this for good reason and its a glaring omission. On 2/17/07, Duncan Murdoch <[EMAIL PROTECTED]> wrote: > On 2/17/2007 7:31 AM, Gabor Grothendieck wr

Re: [Rd] Rscript on Windows

2007-02-17 Thread elw
> Surely R has higher standards than that. How about quality and > completeness of implementation? > > Every other major scripting language has implemented this for good > reason and its a glaring omission. Gabor, can we get a URL from you to a patch that implements this functionality? Than

Re: [Rd] Rscript on Windows

2007-02-17 Thread Gavin Simpson
On Sat, 2007-02-17 at 09:31 -0500, Gabor Grothendieck wrote: > Surely R has higher standards than that. How about quality and > completeness of implementation? > > Every other major scripting language has implemented this for good reason > and its a glaring omission. I think you are forgetting t

Re: [Rd] Rscript on Windows

2007-02-17 Thread Gabor Grothendieck
Just because its open source does not mean everyone should do everything. I suspect I have more expertise in Windows batch than the core developers and also suspect they have more knowledge of the core than I so its a good division of labor if I provide the batch files and they add -x since it take

Re: [Rd] Rscript on Windows

2007-02-17 Thread Duncan Murdoch
On 2/17/2007 10:57 AM, Gabor Grothendieck wrote: [ deletions ] > Also I think that the success of R in the community is such that the core > developers do have some responsibility to the community at large beyond > their own needs. I'd agree with this, as long as you don't limit it to the core

[Rd] Rscript on Windows with R 2.5.0 dev

2007-01-25 Thread Gabor Grothendieck
On Windows XP with R version 2.5.0 Under development (unstable) (2007-01-22 r40548) I always get a message about grdevices when I run Rscript, e.g. C:\> rscript NUL During startup - Warning messages: 1: there is no package called 'grdevices' in: library(package, lib.loc = lib.loc , character.only