s-news
[Top] [All Lists]

echo

To: <s-news@lists.biostat.wustl.edu>
Subject: echo
From: "Frank Lawrence" <Cougar@psu.edu>
Date: Mon, 30 Jul 2001 15:16:24 -0400
Importance: Normal
Reply-to: <Cougar@psu.edu>
My thanks to Bill Dunlap for information regarding Splus echoing commands in
the Report window.

Bill Dunlap wrote:

options("echo") only affects the commands window or batch processing and
isn't terribly useful.  Its default value ought to be F.

The execution of stuff in the script window is done by the script.run()
function (using its exprs.literal argument), which calls source() with
auto.print=T.  source() then sets its argument echo to T if auto.print=T.
If you want auto-printing without echoing you can run, from the command
window
        source("file.ssc", aout.print=T, echo=F)

If you always want to do this from the script window, you could make
a local copy of script.run() and add echo=F to its calls to source().
If you have any problems, remember that you have masked our copy of
script.run and remove it to see if things clear up.

----------------------------------------------------------------------------
Bill Dunlap                                      22461 Mt Vernon-Big Lake Rd
Insightful Corporation                           Mount Vernon, WA 98274
bill@insightful.com                              360-428-8146
 "Formerly known as MathSoft, Insightful Corporation provides analytical
 solutions leveraging S-PLUS, StatServer, S-PLUS Analytic Server and


<Prev in Thread] Current Thread [Next in Thread>