[R] New project: littler for GNU R

Jeffrey Horner jeff.horner at vanderbilt.edu
Wed Sep 27 03:59:33 CEST 2006


Duncan Murdoch wrote:
> On 9/26/2006 1:04 PM, Jeffrey Horner wrote:

[...]

>>    It can be used directly on the command-line just like, say, bc(1):
>>
>>
>>          $ echo 'cat(pi^2,"\n")' | r
>>          9.869604
> 
> Is there a technical reason that this couldn't work by modifying the 
> script that invokes R?  That would avoid the r/R clash on MacOSX and 
> Windows.  In Windows R is R.exe, not a script, so some adjustment would 
> be needed there, but that shouldn't be difficult.

In fact, it does work:

$ echo 'cat(pi^2,"\n")' | R --vanilla --slave
9.869604

but what's more compelling is the ability to utilize the UNIX hash-bang 
mechanism.

Jeff
-- 
http://biostat.mc.vanderbilt.edu/JeffreyHorner



More information about the R-help mailing list