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@stat.math.ethz.ch 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, minimal, self-contained, reproducible code.

Reply via email to