On 26 September 2006 at 15:48, 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.
Quite possible. We would surely encourage it.
We'd be happy to retire littler to the dustbin when `the real R' can do this
too. Until then, littler appear to serve one of us rather well (as R still
can't do shebang-style scripts), and may hence be of interest to others too.
Regards, Dirk
--
Hell, there are no rules here - we're trying to accomplish something.
-- Thomas A. Edison
______________________________________________
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.