geco-bern / agds

Applied Geodata Science book. Developed for the lecture(s) with the same name at the Institute of Geography, University of Bern.
https://geco-bern.github.io/agds/
Other
5 stars 6 forks source link

Packages I had to update in `renv.lock` to run book on MacBook Pro M2 (Ventura 13.2.1) #140

Closed padasch closed 1 year ago

padasch commented 1 year ago

I double-checked with Pepa, and this was not an issue on her Linux machine but only on mine, MacBook Pro M2 (Ventura 13.2.1).

This issue is probably easier to solve than what I did, but when trying to call renv::restore() on the latest renv.lock file, I got multiple errors that packages cannot be installed. The issue was often that a certain library (udunits, gcc, gfortran) could not be found automatically - although I had them installed. To solve this error I had to either specify in ~/.R/Makevars where R should look for these libraries but that did not always resolve the issue. Then I tried bumping the package versions in the renv.lock and that resolved the issues directly. I guess some packages need a specific compiler version to work?

Updates I had to make to get the book running but I did not commit these changes to avoid issues with the online deployment:

Also: rprojroot was added when I made a renv::snapshot()