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:
R 4.2.2 -> R 4.3.1
Rcpp 1.0.9 -> 1.0.10
raster 3.6-14 -> 3.6-20
readxl 1.4.1 -> 1.4.2
sass 0.4.4 -> 0.4.6
sf 1.0-9 -> 1.0-13
terra 1.6-47 -> 1.7-39
units 0.8-1 -> 0.8-2
xml2 1.3.3 -> 1.3.4
Also: rprojroot was added when I made a renv::snapshot()
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 latestrenv.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 therenv.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 arenv::snapshot()