malaria-atlas-project / malariaAtlas

An R interface to open-access malaria data, hosted by the Malaria Atlas Project.
https://malariajournal.biomedcentral.com/articles/10.1186/s12936-018-2500-5
Other
43 stars 21 forks source link

Can't get 2024 Global Pf Incidence Rate #68

Closed geryan closed 1 hour ago

geryan commented 5 hours ago

Fails with Error: [names<-] incorrect number of names across a number of different machines.

library(malariaAtlas)
#> Loading required package: ggplot2
getRaster("Malaria__202406_Global_Pf_Incidence_Rate")
#> Warning: UNRELIABLE VALUE: One of the 'future.apply' iterations
#> ('future_lapply-1') unexpectedly generated random numbers without declaring so.
#> There is a risk that those random numbers are not statistically sound and the
#> overall results might be invalid. To fix this, specify 'future.seed=TRUE'. This
#> ensures that proper, parallel-safe random numbers are produced via the
#> L'Ecuyer-CMRG method. To disable this check, use 'future.seed = NULL', or set
#> option 'future.rng.onMisuse' to "ignore".
#> Checking if the following Surface-Year combinations are available to download:
#> 
#>     DATASET ID  YEAR
#>   - Malaria__202406_Global_Pf_Incidence_Rate:  DEFAULT
#> 
#> Loading required package: sf
#> Linking to GEOS 3.12.1, GDAL 3.9.0, PROJ 9.4.0; sf_use_s2() is FALSE
#> <GMLEnvelope>
#> ....|-- lowerCorner: -55.0833358764648 -118.375 "2000-01-01T00:00:00"
#> ....|-- upperCorner: 53.5416679382324 170.25 "2022-01-01T00:00:00"
#> Error: [names<-] incorrect number of names

Created on 2024-11-18 with reprex v2.1.0

mauricio-tki commented 3 hours ago

Thanks for filing an issue @geryan. There were changes in the format of some of the 2024 rasters on the backend, and you'll have to update to the newest version of the package to handle those properly.

The random number warning is unfortunately still there. It doesn't affect the output, but I'll look into getting rid of it.