r-lib / pak

A fresh approach to package installation
https://pak.r-lib.org
671 stars 60 forks source link

Make pak compatible with R installations w/o a shared library #466

Open gaborcsardi opened 1 year ago

gaborcsardi commented 1 year ago

On Linux. On Windows and macOS we can assume that there is a shared library.

There are two ways to do this:

gaborcsardi commented 1 year ago

The dummy libR.so is hard because we cannot change LD_LIBRARY_PATH for the R process itself, and we also need to load some shared objects in the main process. So we need to put the libR.so in a place that is on the library search path already. But that is not really possible to manage from an R package. So we need to remove the libR.so dependency with patchelf at build time.