Hi,

I’m preparing a package to be released through CRAN for Dr. Jacob Montgomery at 
WUSTL and I’m running into a warning that I can’t seem to resolve.

The RCMD check is being run in R 4.2.2 on MacOS.
After running devtools::check() on the labelR package, it returns this warning:
 checking dependencies in R code ... WARNING
  'loadNamespace' or 'requireNamespace' call not declared from: ‘Rcpp’
  Package in Depends field not imported from: ‘methods’
    These packages need to be imported from (in the NAMESPACE file)
    for when this namespace is loaded but not attached.

@imports ‘Rcpp’ has been included in all relevant functions
It is currently in the scripts as requireNamespace(“Rcpp”) since we are using 
requireNamespace(“rstan”). We have tried loadNamespace(“Rcpp”) which did not 
resolve the issue.
Imports(‘Rcpp’) is within NAMESPACE.
Within the DESCRIPTION file, Rcpp is under Imports. We have tried moving it to 
Suggests, but that also did not resolve the issue. It’s unclear what the error 
is stemming from and we would appreciate any input to resolve this warning.

Thank you,

Bingham


_______________________________________________
Rcpp-devel mailing list
Rcpp-devel@lists.r-forge.r-project.org
https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel

Reply via email to