[R-pkg-devel] Testing package on R-devel in a docker container
Dirk Eddelbuettel
edd @end|ng |rom deb|@n@org
Mon Aug 11 13:27:10 CEST 2025
On 10 August 2025 at 21:38, Ott Toomet wrote:
| root using 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 using f4024e015396:/# RDscript -e "packageVersion('lattice')"
| [1] ‘0.22.7’
| root using 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 | edd using debian.org
More information about the R-package-devel
mailing list