[R-pkg-devel] Testing package on R-devel in a docker container
Dirk Eddelbuettel
edd @end|ng |rom deb|@n@org
Mon Aug 11 16:53:53 CEST 2025
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 | edd using debian.org
More information about the R-package-devel
mailing list