From plummerm at iarc.fr  Fri Oct 31 12:29:38 2014
From: plummerm at iarc.fr (Martyn Plummer)
Date: Fri, 31 Oct 2014 11:29:38 +0000
Subject: [Rd] 'library' or 'require' call not declared from: 'rgl'
In-Reply-To: <5452AB30.7080809@yorku.ca>
References: <54528D4F.30008@yorku.ca>
	<AB1DE897-323E-4DD1-AC4F-363795A565C5@r-project.org>
	<5452AB30.7080809@yorku.ca>
Message-ID: <1414754978.17982.8.camel@braque.iarc.fr>

On Thu, 2014-10-30 at 17:18 -0400, Michael Friendly wrote:
> On 10/30/2014 4:19 PM, Simon Urbanek wrote:
> > Did you intend rgl to be optional? If so, then you should use
> Suggests: instead. When you use Imports: it will load rgl
> automatically so require() does't make sense (since it will be always
> TRUE).
> >
> I always had it as Suggests: rgl before.  But R-devel now gave be all 
> those "no visible global function definition for ..."
> messages.
> 
> Achim suggested using explicitly rgl:: everywhere.  That's quite ugly, 
> but seems to work.

I think you do want "Depends" rather than "Suggests" here. "Suggests" is
for when the other package does not need to be loaded for the user to
use your package, but the other package might be used in an example or
vignette.

In your package, the default method for a generic function that your
package defines calls functions from rgl. To me that means rgl should be
in "Depends", and the required functions from rgl should be imported in
the NAMESPACE file.

Martyn

-----------------------------------------------------------------------
This message and its attachments are strictly confidenti...{{dropped:8}}



[Rd] 'library' or 'require' call not declared from: 'rgl'
Martyn Plummer