isciences / exactextractr

R package for fast and accurate raster zonal statistics
https://isciences.gitlab.io/exactextractr/
274 stars 26 forks source link

Install error #53

Closed stillill closed 3 years ago

stillill commented 3 years ago

I'm getting the following error when I try to install "exactextractr".

exactextract/src/raster_stats.h:271:68: note: candidate: exactextract::RasterStats<T>::minority() const::<lambda(const int&, const int&)> [with T = double]
                                     [](const auto &a, const auto &b) {
                                                                    ^
exactextract/src/raster_stats.h:271:68: note:   no known conversion for argument 1 from ‘const std::pair<const double, float>’ to ‘const int&’
make: *** [exact_extract.o] Error 1
ERROR: compilation failed for package ‘exactextractr’

I'm on RHEL 7.8 using GCC 6.3.0 with R 4.0.3. Any ideas as to what's causing the error? Thanks!

stillill commented 3 years ago

I resolved this issue by installing from the gihub repo.

dbaston commented 3 years ago

Thanks for the report. I've submitted 0.6.0 to CRAN just now.