Closed 8Ginette8 closed 3 months ago
I think I solved the error with the right imports
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 ✖
i MANAGED TO MAKE IT WORK WITH lINUX... FOR now abandoning macos and for the first time a passing workflow! We have to commemorate :)
Yeeeeaaaaaaaaaahhhhhhh, download process and removal of too big files next step :D :D
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...