From Friedrich.Leisch at ci.tuwien.ac.at  Wed May 12 11:36:58 2004
From: Friedrich.Leisch at ci.tuwien.ac.at (Friedrich.Leisch@ci.tuwien.ac.at)
Date: Wed May 12 11:37:05 2004
Subject: [Rd] stdout == 'Terminal' or 'File' {was 'bad interaction ...'}
In-Reply-To: <16545.60716.856405.794704@gargle.gargle.HOWL>
References: <16545.53575.897894.285835@gargle.gargle.HOWL>
	<Pine.LNX.4.44.0405120854140.16123-100000@gannet.stats>
	<16545.60716.856405.794704@gargle.gargle.HOWL>
Message-ID: <16545.61498.436669.619802@galadriel.ci.tuwien.ac.at>

>>>>> On Wed, 12 May 2004 11:23:56 +0200,
>>>>> Martin Maechler (MM) wrote:


  > and maybe we (R developers) should also consider setting some of
  > these (e.g. STERM = "Rgui" in that case) -- at least when the
  > info is available (and somewhat reliable) and even better think
  > about what else (better) could be done, working with  options()
  > settings as a workaround for this problem.

yes

  > Also (for the original topic), maybe  Sweave() could set
  > options(STERM = 'Sweave')

fine with me, but ...

  > if options(STERM = 'BATCH) is not good
  > enough.  Then, code like Martin Schlather's use
  >       switch(getOption("STERM"), 
  >              "BATCH" =  { .........},
  > 	     ....
  > 	     )

... for applications like this we might want to keep the list of
possible "terminals" as short as possible (and of course as long as
necessary), so we should come up with a list of possible typoes and
then try to set the option wherever necessary.

.f


[Rd] stdout == 'Terminal' or 'File' {was 'bad interaction ...'}
Friedrich.Leisch@ci.tuwien.ac.at