[R-pkg-devel] Testing package on R-devel in a docker container
Ott Toomet
otoomet @end|ng |rom gm@||@com
Mon Aug 11 14:26:52 CEST 2025
Hmm...
I am a little bit confused.
* Is this "narrower" library path for CMD check explained somewhere?
* Isn't lattice one of the default packages (graphics depends on it iirc),
so it should be installed in any case?
Thanks, anyway. So far my tiny test package
https://github.com/otoomet/dummypkg (0.0-1) works, so now I am looking at
vignettes.
Cheers,
Ott
On Mon, Aug 11, 2025 at 4:27 AM Dirk Eddelbuettel <edd using debian.org> wrote:
>
> 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
>
[[alternative HTML version deleted]]
More information about the R-package-devel
mailing list