Java Mailing List Archive

http://www.r-help.com/

Home » Home (12/2007) » R Help for Statistical Computing »

Re: [R] New project: littler for GNU R

Jeffrey Horner

2006-09-26

Replies:

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

______________________________________________
R-help@(protected)
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, minimal, self-contained, reproducible code.
©2008 r-help.com - Jax Systems, LLC, U.S.A.