rspatial / geodata

download geographic data
GNU General Public License v3.0
147 stars 15 forks source link

sp_occurrence() progress messages are off when start>1 #64

Open AMBarbosa opened 6 months ago

AMBarbosa commented 6 months ago

It's OK with the defaults, but if start>1, the messages shown in the console start getting weird: the number of reported "records found" decreases, and the 1st downloaded record looks one less than should be:

> x <- sp_occurrence(genus = "Daboia", species = "mauritanica", start = 1)
72 records found
0-72
72 records downloaded

> x <- sp_occurrence(genus = "Daboia", species = "mauritanica", start = 2)
71 records found
1-72
72 records downloaded

> x <- sp_occurrence(genus = "Daboia", species = "mauritanica", start = 3)
70 records found
2-72
72 records downloaded