If end >100,000, an error message is shown, even if start is large enough for the total number of records to be OK:
sp_occurrence(genus = "Lutra", download = FALSE)
[1] 243745
sp_occurrence(genus = "Lutra", start=100000, end=100001)
# Error in sp_occurrence(genus = "Lutra", start = 1e+05, end = 100001) :
GBIF does not allow using this service for record numbers that are > 100,000
I submitted a pull request (#62) that seems to fix that. After applying that fix, the download does start, but then seems to fail under most circumstances, though not all - ignore the wacky reported number of downloaded records, which is the subject of a separate issue (#64):
If
end
>100,000, an error message is shown, even ifstart
is large enough for the total number of records to be OK:I submitted a pull request (#62) that seems to fix that. After applying that fix, the download does start, but then seems to fail under most circumstances, though not all - ignore the wacky reported number of downloaded records, which is the subject of a separate issue (#64):