Issue installing package through github action

Hello! I recently created a quarto website where the website is built to Netlify through a Github Action (per the docs here). It's worked well until I tried to add interactive maps. Leaflet uses the raster package, which uses terra. The dependancies are downloaded with no problem, but when they're installed I get this error:

- Installing terra ...                          FAILED

Error in dyn.load(file, DLLpath = DLLpath, ...) : 
  unable to load shared object '/home/runner/work/0-shelby/0-shelby/renv/staging/1/terra/libs/terra.so':
  libproj.so.22: cannot open shared object file: No such file or directory
Calls: loadNamespace -> library.dynam -> dyn.load
Execution halted

From googling it seems like this is an issue with paths, but since the website is built through a Github Action I'm not sure how to resolve this.

If it's relevant, I'm on an M2 Macbook with a silicon chip, and the github action cache reads "Ubuntu 22.04.3 LTS-R version 4.2.0 (2022-04-22)-1"

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.