8Ginette8 / gbif.range

An R package to generate species range maps based on ecoregions and a user-friendly GBIF wrapper
MIT License
15 stars 1 forks source link

Workflow fails because terra cannot be installed #16

Closed 8Ginette8 closed 3 months ago

8Ginette8 commented 6 months ago

Terra does not want to install in GitHub workflow, in "Install dependencies": " configure: error: gdal-config not found or not executable. no ERROR: configuration failed for package ‘terra’ removing ‘/Users/runner/work/_temp/Library/terra’ " Further: " Warning message: In i.p(...) : installation of package ‘terra’ had non-zero exit status "

So the check obviously fails with:

" checking package dependencies ... ERROR Package required but not available: ‘terra’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’ manual. "

Which is odd because everything worked with "dev_check" locally...Warnings about the ecoregion data file (need to replace by downloads), but no errors...My R version on my PC is 4.3.2...

8Ginette8 commented 6 months ago

I think I solved the error with the right imports

8Ginette8 commented 6 months ago

Sorry I reopened because it seems that R do not want to be installed in the GitHub Workflow, maybe we can remove this install part in the checks? With devtools::check locally, everything works except the warnings about ecoregion files:

── R CMD check results ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── gbif.range 1.0 ──── Duration: 3m 11.4s

❯ checking for missing documentation entries ... WARNING Undocumented code objects: 'eco.earth' 'eco.fresh' 'eco.marine' Undocumented data sets: 'eco.earth' 'eco.fresh' 'eco.marine' All user-level objects in a package should have documentation entries. See chapter 'Writing R documentation files' in the 'Writing R Extensions' manual.

❯ checking LazyData ... WARNING LazyData DB of 117.3 MB without LazyDataCompression set See §1.1.6 of 'Writing R Extensions'

❯ checking R code for possible problems ... [16s] NOTE get_range: no visible binding for global variable 'eco.earth' Undefined global functions or variables: eco.earth

❯ checking for non-standard things in the check directory ... NOTE Found the following files/directories: 'temp65951058'

0 errors ✔ | 2 warnings ✖ | 2 notes ✖

ohagen commented 3 months ago

i MANAGED TO MAKE IT WORK WITH lINUX... FOR now abandoning macos and for the first time a passing workflow! We have to commemorate :)

8Ginette8 commented 3 months ago

Yeeeeaaaaaaaaaahhhhhhh, download process and removal of too big files next step :D :D