On Oct 30, 2014, at 3:11 PM, Michael Friendly <friendly at yorku.ca> wrote:
I'm checking a new release of vcdExtra via win builder with R-devel 2014-10-29 r66897
and have run into a Warning I don't know how to fix.
I have one S3 generic, mosaic3d() that uses rgl and don't want to have rgl always loaded
via Depends:. Instead, the mosaic3d.default() method includes
if (!require(rgl)) stop("rgl is required")
This always worked in the past, but in this testing cycle, I got a slew of "no visible global function definition for ..."
all rgl functions.
I revised DESCRIPTION to include:
Imports: rgl
and NAMESPACE:
import(rgl)
All the "no visible global function definition ..." went away, but I'm stuck with
* checking dependencies in R code ... WARNING
'library' or 'require' call not declared from: 'rgl'
See the information on DESCRIPTION files in the chapter 'Creating R
packages' of the 'Writing R Extensions' manual.
How can I solve this?