R-alpha: R wish: options(echo = TRUE)

Martin Maechler (maechler@stat.math.ethz.ch)
Wed, 15 May 96 10:18:30 +0200

Date: Wed, 15 May 96 10:18:30 +0200
Message-Id: <9605150818.AA12388@>
From: Martin Maechler <maechler@stat.math.ethz.ch>
To: R-testers mailing list <R-testers@stat.math.ethz.ch>
Subject: R-alpha: R  wish:   options(echo = TRUE)

As long as we are still in alpha state, 
and now that 'console management' (stdin...) is working,
the next whish pops up :

I'd like an  option  'echo'  (default = FALSE)
which when set to TRUE, allows
that input is 'copied' to the output before being executed.

------- The following is an idea to even improve upon S 
	and is much less important :		------------------------------

In  S, the "prompt", per default "> "  is NOT copied which I usually see
as a drawback.
The main application of
	   options(echo = T)
for me is to produce nicer output files when using 
'source(..)' or "S BATCH" (which we now have almost with 
			   R < input.R > output.R).

So, maybe the 'echo' option should have  3 possible values:
	"no"  or 0 or FALSE	= default
	"yes" or 1 or TRUE	= as in S, no "prompt"	
	"prompt" or 2		= input + prompt are echoed to output	
r-testers mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: r-testers-request@stat.math.ethz.ch