On 11 August 2025 at 05:26, Ott Toomet wrote: | * Is this "narrower" library path for CMD check explained somewhere?
Make your package (in a test, maybe even just tests/hello.R) do `print(.libPaths())` and assert it is different during tests. This has nothing to do with the Docker container (but arguably related to how I packaged R for Debian for 20-some years following a discussion with Kurt and Fritz 'way back when' that lead to the current split and the three default directories): > .libPaths() # my comments for rationale below [1] "/usr/local/lib/R/site-library" # system-wide, not packaged [2] "/usr/lib/R/site-library" # non-base/recommended packages from the distro [3] "/usr/lib/R/library" # base+recommended packages from the distrp > plus optionally one below $HOME (and I personally do without). Follow-ups, if any, maybe to r-sig-debian? Hth, 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