r-lib / pak

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

Bundling of dependent packages causing issues on non-Linux platforms #682

Closed agregson closed 2 months ago

agregson commented 2 months ago

I have installed pak on OpenBSD. It seems that the downloaded package from R CRAN includes some dependent packages, including lpSolve. lpSolve could not be installed on OpenBSD as <sys/timeb.h> has been removed, deemed antiquated. I was able to write to the maintainer of lpSolve and they were able to very quickly fix the installation issue on OpenBSD. I installed lpSolve, but I soon realized that pak was attempting to install its own version of lpSolve!

Why would this happen? Should pak not just check to see if dependencies are already installed, and if so, not try to reinstall them?

This is likely not much of an issue on standard Linux platforms, but to increase the generalizability of installations, it would be best to keep it as vanilla as possible.

Thank you for your consideration.