On 10 August 2025 at 21:38, Ott Toomet wrote:
| root@f4024e015396:/# cat maxLik.Rcheck/00install.out
| * installing *source* package ‘maxLik’ ...
| ** this is package ‘maxLik’ version ‘1.6-3’
| ** using staged installation
| ** R
| ** inst
| ** byte-compile and prepare package for lazy loading
| Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]])
| :
|   there is no package called ‘lattice’
| Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart ->
| doWithOneRestart
| Execution halted
| ERROR: lazy loading failed for package ‘maxLik’
| * removing ‘/maxLik.Rcheck/maxLik’
| 
| Apparently 'lattice' is missing???
| 
| * But it is there and I can load it with no errors:
| 
| root@f4024e015396:/# RDscript -e "packageVersion('lattice')"
| [1] ‘0.22.7’
| root@f4024e015396:/# RDscript -e "library(lattice)"

Because R CMD check uses a separate 'narrower' library path for checking a
package, you need to install the dependencies of the package you are
checking. So one way to address this is to 'RD CMD INSTALL lattice' (followed
by whatever else your package needs) in your running Docker session.

Dirk

-- 
dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to