Skip to content
Prev 42260 / 63424 Next

Silently loading and Depends: versus NAMESPACE imports

Hi Dirk,
On 01/11/2012 11:42 AM, Dirk Eddelbuettel wrote:
Note that you can always fool 'R CMD check' by doing something like:

     sillyname <- library
     suppressMessages(sillyname("foo"))

Also isn't suppressPackageStartupMessages() more appropriate?
If you only need to import foo (i.e. and actually don't need to attach
it to the search path) then putting foo in Imports and using import
statements in NAMESPACE will keep the noise level down to zero.

So I guess your question is: how do we suppress package startup messages
for packages listed in Depends?

Cheers,
H.