[R-pkg-devel] How to resolve missing packages without Notes
Stephen Abrams
@tephen@@br@m@ @end|ng |rom gm@||@com
Sun Mar 9 20:03:00 CET 2025
Hi again - I'm working through the final details of a submission. My
current problem is that I make use of a dependency of the caret package
(kernlab) in one of my vignettes. If I don't include kernlab in my
DESCRIPTION file, I get the following ERROR:
* checking re-building of vignette outputs ... [16s] ERROR
Error(s) in re-building vignettes:
--- re-building 'create_synthetic_data.Rmd' using rmarkdown
--- finished re-building 'create_synthetic_data.Rmd'
--- re-building 'modeling_with_binary_classifiers.Rmd' using rmarkdown
Quitting from lines 56-63 [unnamed-chunk-4]
(modeling_with_binary_classifiers.Rmd)
Error: processing vignette 'modeling_with_binary_classifiers.Rmd' failed
with diagnostics:
Required packages are missing: kernlab
--- failed re-building 'modeling_with_binary_classifiers.Rmd'
If I do include kernlab as a dependency in my DESCRIPTION file, I get the
following NOTE:
* checking dependencies in R code ... NOTE
Packages in Depends field not imported from:
'kernlab' 'randomForest'
These packages need to be imported from (in the NAMESPACE file)
for when this namespace is loaded but not attached.
My NAMESPACE file is auto-generated by roxygen and actually says not to
edit it. I think the problem is the implicit dependency inside caret, but
I'm not sure how to solve it so the automated checks work. When I run this
on my own machine, it passes the --as-cran check. Any advice would be
greatly appreciated.
Thanks!
--
Stephen Abrams
Divergent Blue <http://www.divergentblue.com/>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list