Suppress package loading message in R package NAMESPACE

Tag: r , namespaces Author: zfw2 Date: 2014-04-01

I am importing a package called "KernSmooth" and want the start up message not to show up ...

In my Description file:

Package: test
Title: Test
Author: Mike
Description: Test
Maintainer: Mike
Depends: R(>= 2.10.0)
Imports: KernSmooth

And my Namespace file:

import(KernSmooth)

But when I load the package I still get the start up message:

KernSmooth 2.23 loaded
Copyright M. P. Wand 1997-2009

Is my only option not to import it in NAMESPACE and use

suppressMessages(require(KernSmooth)) 

within my R function to avoid the message?

Have you looked into suppressPackageStartupMessages ?
I don't think you can use that in the NAMESPACE? suppressMessages does suppress the messages but I have to load the library in my function. I wanted to see if there was a way to do it through the NAMESPACE.
Perhaps use library instead of require. I get a message with require, and none with library
Apparently the KernSmooth author wants to display this message, even when the package is loaded but not attached; you should respect the author's intention, or find another implementation that does not display a message.
I agree that the author's intention should be respected but I would much rather note use of the package in the vignette than have to see an awkward copyright every time the package is loaded. I still think there should be a way to suppress the message in the NAMESPACE so I will leave the question up.