rcmdcheck
rcmdcheck copied to clipboard
`libpath` argument is not respected during build step
Use case:
- package A
- package B that has package A in its imports
Steps to reproduce:
- create tempdir (and don't include that into the .libPath)
- install package A in tempdir
rcmdcheck::rcmdcheck(<path to B source code>, libpath = <tempdir with A pre-installed>)
Things are correct if I add my tempdir into .libPath so it's clear that the build step is looking into the global .libPath instead of libpath argument.
Here's my output:
── R CMD build ────────────────────────────────────────────────────────────────────
OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k
✔ checking for file ‘.../DESCRIPTION’ (388ms)
─ preparing ‘teal.code’: (29.9s)
✔ checking DESCRIPTION meta-information ... OK
─ installing the package to build vignettes
-----------------------------------
OpenBLAS WARNING - could not determine the L2 cache size on this system, assuming 256k
ERROR: dependency ‘teal.widgets’ is not available for package ‘teal.code’
─ removing ‘/tmp/RtmpNUkapZ/Rinste2442094e6ba/teal.code’
-----------------------------------
ERROR: package installation failed
Error in proc$get_built_file() : Build process failed
Plus some debug checks:
> "teal.widgets" %in% installed.packages()
[1] FALSE
> "teal.widgets" %in% installed.packages(lib.loc = libpath)
[1] TRUE
PR is welcome, I think there is a chance that it just needs passing the argument.
@gaborcsardi PR ready 🚀 - please have a look!