From edd at debian.org  Fri Aug 14 04:53:24 2009
From: edd at debian.org (Dirk Eddelbuettel)
Date: Thu, 13 Aug 2009 21:53:24 -0500
Subject: [Rd] Package-level access to Rp->R_Quiet ?
Message-ID: <19076.53668.327171.363843@ron.nulle.part>


I would like to simulate the effect of the command-line option --quiet from
user-level scripts and startup code.  From src/main/CommandLineArgs.c I learn
that Rp->R_Quiet is set, and I see how that is used in main/main.c.

I would use this from code in Rprofile.site. In other words, I want to be
silent when --quiet is used (as e.g. by littler or Rscript) but not by R
itself in normal interactive mode or from ESS.

But it seems that I cannot get to this variable outside of the main
interpreter.  Could this symbol be exported?

Dirk

-- 
Three out of two people have difficulties with fractions.



[Rd] Package-level access to Rp->R_Quiet ?
Dirk Eddelbuettel