[Rd] odd NOTE in R CMD check of data; Rcpp module related
edd @ending from debi@n@org
Sat Nov 3 20:07:28 CET 2018
On 3 November 2018 at 10:29, Robert J. Hijmans wrote:
| With the current version of the "raster" package (that I maintain), R CMD
| check on packages "soilDB" and "PopGenReport" have this NOTE:
| Package: soilDB
| Check: data for non-ASCII characters
| New result: NOTE
| Error in .requirePackage(package) :
| unable to find required package 'raster'
| Calls: <Anonymous> ... .findInheritedMethods -> getClass -> getClassDef
| -> .requirePackage
| Execution halted
| Any idea about what I can do to get rid of this?
Shooting a little from the hip, but based on the error and a glance at
you may need to import the 'methods' package. I see that
has it (and also a corresponding `importFrom(methods,as)`. I think I usually
deploy a more global 'import(methods)'. This is needed because Rcpp Modules
does some black magic on the package setup to make everything that needs to
be visible effectively visible.
One way to go about this is to create a minimal package using Rcpp Modules,
and to then make sure you carry each setting of the minimal package over into
your actual package -- that would usually involve imports and declaration.
http://dirk.eddelbuettel.com | @eddelbuettel | edd using debian.org
More information about the R-devel