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

From: Richard M. Heiberger <>
Date: Tue 26 Sep 2006 - 21:02:06 GMT

I like this plan and have now played with the concept. I did the following on Windows in cygwin. It would also work in Unix, and I think could be tickled to work on the standard MS cmd line in Windows. It would certainly work on Windows with a Windows-native port of the basic unix utilities.

echo 'options(echo=FALSE);cat(pi^2,"\n")' | Rterm --no-save

This produces an output file, that normally shows up in the *shell* buffer, but could be redirected. The obvious place to redirect it to is awk with a script to filter out everything above the echo of the options() line.

The only change to R needed to remove the need for an awk script is to suppress the display of the copyright message and startup information. I suppose that could be done with a new  --suppress-startup-info argument to Rterm.

The other optimizations that Jeffrey and Dirk have, such as suppressing the loading of many of the standard packages, would also need to be done.

Very good work and concept.

Rich mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed Sep 27 07:10:54 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Tue 26 Sep 2006 - 22:30:06 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.