From edd at debian.org  Fri Apr 27 15:35:35 2007
From: edd at debian.org (Dirk Eddelbuettel)
Date: Fri, 27 Apr 2007 08:35:35 -0500
Subject: [Rd] How to suppress 'Loading required package ...' via
	Depends/Imports
Message-ID: <17969.64551.962449.586155@basebud.nulle.part>


I tend to run batch jobs via littler. These often start with a single line
loading one or two in-house packages.  Now, most the Depends of these
in-house packages now use Depends: entries in DESCRIPTION, rather than
require() in R/zzz.R.  This seems to have at least one undesirable side
effect: noise.

Using require(), I can choose the 'quietly=TRUE, warn.conflict=FALSE'
arguments, and additionally I can wrap the require call in stopfifnot()
making it both quiet and failure proof. 

But I cannot figure out how to tell R via DESCRIPTION how to 
  a) not tell me its loading a package
  b) keep quiet about the conflicts

In other words, how do I get rid of all this:

  foo:~s> ./someLittlerScript
  Loading required package: MASS
  Loading required package: grDevices
  Loading required package: graphics
  Loading required package: stats
  Loading required package: utils
  Loading required package: zoo

  Attaching package: 'zoo'


          The following object(s) are masked from package:base :

           rapply

Thanks, Dirk

-- 
Hell, there are no rules here - we're trying to accomplish something. 
                                                  -- Thomas A. Edison



[Rd] How to suppress 'Loading required package ...' via Depends/Imports
Dirk Eddelbuettel