ErikKusch / KrigR

An R Package for downloading, preprocessing, and statistical downscaling of the European Centre for Medium-range Weather Forecasts ReAnalysis 5 (ERA5) family provided by the European Centre for Medium‐Range Weather Forecasts (ECMWF).
Other
97 stars 23 forks source link

install error (rgdal) #73

Closed fipoucat closed 2 months ago

fipoucat commented 2 months ago

I am trying to install KrigR on Rstudio (Mac) but getting an error related to rgdal (to the best of my knowledge, it is retired).

configure: Install failure: compilation and/or linkage problems. configure: error: GDALAllRegister not found in libgdal. ERROR: configuration failed for package ‘rgdal’

ErikKusch commented 2 months ago

Hiya,

this is unfortunately a re-occuring issue (#59). You can resolve this issue in one of two ways:

  1. Follow the guideline given on the landing page on KrigR GitHub or the KrigR Workshop material and install rgdal by hand by running:
remotes::install_github("https://github.com/cran/rgdal")
  1. Install the latest version of KrigR from the development branch and use the novel CDownloadS(...) function introduced therein. You can do so by running:
devtools::install_github("https://github.com/ErikKusch/KrigR", ref = "Development")

Note that this version of KrigR is under development and does only contain functionality for data download (what download_ERA(...) does in the stable release) and does not currently support any kriging.