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
Use case:
Steps to reproduce:
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:
Plus some debug checks: