inbo / n2khab

R package with preprocessing functions and standard reference data for Flemish Natura 2000 (N2K) habitat (HAB) analyses
https://inbo.github.io/n2khab
GNU General Public License v3.0
2 stars 1 forks source link

GithHub Actions workflow R-CMD-check on macOS: needs udunits library for building from source #120

Closed florisvdh closed 3 years ago

florisvdh commented 3 years ago

It appears that the macOS-latest machine of GHA currently does not get a binary version of the units package from CRAN. And to build it from source, it needs the udunits library, which it lacks. The absence of a binary units package from CRAN is probably temporary, but the problem needs a simple solution.

To be solved either by:

Planning to decide on this in the light of choices in #119. To be implemented ASAP.

florisvdh commented 3 years ago

What is lacking or not for macOS, either on CRAN or on the build machine, seems flaky.

Currently it appears that units is available from CRAN as binary. sf still isn't, and now complains about missing gdal as well (that may also have been the problem before, but never got that far).

RSPM is just a lagged CRAN so doesn't solve this.

It will be solved by pre-installing udunits and gdal by default on macOS. At least when those are missing on the machine (or at another version), this slows down the macOS check because they must be installed, but it seems to stay below 10 minutes.

florisvdh commented 3 years ago

Solved by #123.