AtlasOfLivingAustralia / galah-R

Query living atlases from R
https://galah.ala.org.au
39 stars 3 forks source link

Caching for `ala_occurrences()` ignores `mint_doi` argument #56

Closed matildastevenson closed 3 years ago

matildastevenson commented 3 years ago

Would expect that if ala_occurrences() is run twice, with caching on, that if mint_doi=TRUE in the second call, that the data is re-downloaded. Currently this doesn't happen.

ala_occurrences(taxa = select_taxa("Microseris lanceolata"), filters = select_filters(year = 2021))
#Data should be re-downloaded but isn't
ala_occurrences(taxa = select_taxa("Microseris lanceolata"), filters = select_filters(year = 2021),
mint_doi = TRUE)

What should happen if the calls are run the other way around?

ala_occurrences(taxa = select_taxa("Microseris lanceolata"), filters = select_filters(year = 2021),
mint_doi = TRUE)
ala_occurrences(taxa = select_taxa("Microseris lanceolata"), filters = select_filters(year = 2021))

Relates to issue #55

matildastevenson commented 3 years ago

Fixed in 666ced45c0a4ac3d83c3f320767c4f92a053e651, and will re-download data for the second case