From edd at debian.org  Fri Feb 24 14:33:12 2012
From: edd at debian.org (Dirk Eddelbuettel)
Date: Fri, 24 Feb 2012 07:33:12 -0600
Subject: [Rd] Silently loading and Depends: versus NAMESPACE imports
In-Reply-To: <CAE9ddGCXf8J55mx=n4JZEyX3CXq0UB4rDzAjwJKCmVbhw-eroQ@mail.gmail.com>
References: <20237.58927.327444.422917@max.nulle.part>
	<4F0F3EC0.5060500@fhcrc.org>
	<20258.47943.798999.741944@max.nulle.part>
	<4F2419AE.5010203@statistik.tu-dortmund.de>
	<20260.7967.353013.815027@max.nulle.part>
	<CAE9ddGDo7rf9rm6tsRdfhx+C=JHiTWwDeyV8z3jUi-bzR8mkgg@mail.gmail.com>
	<4F460E03.1000604@statistik.tu-dortmund.de>
	<CAE9ddGCXf8J55mx=n4JZEyX3CXq0UB4rDzAjwJKCmVbhw-eroQ@mail.gmail.com>
Message-ID: <20295.37272.595195.206946@max.nulle.part>


On 24 February 2012 at 00:27, Suraj Gupta wrote:
| I don't think that is it. ?My startup message is currently in .onAttach and I
| still see startup message from packages that I have moved from Imports to
| Depends.
| Dirk?

There are / were are few issues intertwined in my case, and yours may differ:

 - are the messages from your code / packages and you startup messages ?

 - are they from imported packages ?

 - are they from R (reported 'foo being shadowed' or 'generic bar defined')

In my case a combination of using .onAttach and .onLoad (instead of just
.onLoad) together with import directives in a NAMESPACE file solved the
issue, as had been suggested on this list.

Dirk

-- 
"Outside of a dog, a book is a man's best friend. Inside of a dog, it is too
dark to read." -- Groucho Marx



[Rd] Silently loading and Depends: versus NAMESPACE imports
Dirk Eddelbuettel