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
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
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
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
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
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
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
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
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
> 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
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
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
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
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
14 matches
Mail list logo