iobis / robis

R client for the OBIS API
https://iobis.github.io/robis
Other
35 stars 11 forks source link

Added 'limit' argument to set the maximum number of records to download. #98

Open roliveros-ramos opened 2 years ago

roliveros-ramos commented 2 years ago

I stepped up into some species with millions of records and no way to control the maximum number of records to download. For an initial exploration in particular, this can be very useful. This pull request adds a new argument to the function 'occurrence': limit, controling the maximum number of records to download. The default value (NULL) reproduce the previous behaviour of the function, downloading all records, so nothing is expected to be broken with this change.