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 Ubuntu: either take different approach for caching or partly return to RSPM #119

Closed florisvdh closed 3 years ago

florisvdh commented 3 years ago

Citing from PR #108:

All workflows use the standard CRAN repository. All Linux workflows also use the ubuntugis-unstable PPA to get (more) recent geospatial libraries.

For Ubuntu, this meant taking no advantage of the binary packages from RStudio Package Manager (RSPM). The approach has its merits: CRAN is a bit more up to date and given re-compilation the packages can be used with the ubuntugis-unstable PPA, so if unit tests were added to n2khab, geospatial functions would be tested against more recent versions of geospatial libraries = more future-proof. However the downside is that all packages are compiled from source, and this takes long. The compiled packages are cached on GHA, but from the moment one dependency gets updated on CRAN, the cache is not used and all dependencies are compiled again.

Different approaches may be tried to make this process shorter:

florisvdh commented 3 years ago

Solved by #123.