r-lib / rcmdcheck

Run R CMD check from R and collect the results
https://rcmdcheck.r-lib.org
Other
115 stars 27 forks source link

`libpath` argument is not respected during build step #195

Open pawelru opened 1 year ago

pawelru commented 1 year ago

Use case:

Steps to reproduce:

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
gaborcsardi commented 1 year ago

PR is welcome, I think there is a chance that it just needs passing the argument.

pawelru commented 1 year ago

@gaborcsardi PR ready 🚀 - please have a look!