Comments (4)
hmmm, tried today, not sure how to fix this
from rgbif.
Hey Scott,
I did a little experimenting and I think the way to fix it may be to simply add an as.integer() to the declaration of maxresults on the args object. The problem occurs when the function getForm() attempts to communicate with the gbif api. If maxresults is not an integer because R has converted it to 1e6 for example then this will raise an exception error.
I think you could solve this problem by doing the following, in the function occurrencelist()
When args is created do the following:
args <- compact(list(scientificname = scientificname, dataproviderkey = dataproviderkey,
...,
stylesheet = stylesheet, maxresults = as.integer(maxresults)))
This seems to fix the problem for me.
from rgbif.
Hey @dmcglinn , thanks for figuring this out! I will do that right away.
from rgbif.
Should be fine now, e..g, do
occurrencelist(scientificname = 'Accipiter erythronemius', coordinatestatus = TRUE, maxresults = 10^2)
from rgbif.
Related Issues (20)
- check_inputs function in zzz.R seems to mangle valid inputs HOT 1
- Why occ_download return a CSV file contains only one column and different rows? HOT 5
- support occ_download eraseAfter HOT 1
- Add support for extension downloads
- support gbifid downloads
- fix tests associated with new GBIF polygon interpretation
- GitHub actions likely rtools build error HOT 1
- consider deprecating some out of date gbif_citation functions
- Deprecate the "axe" feature in occ_data
- Give user friendly warning about full downloads using occ_download()
- Add support for describe download formats
- add guidance for reversing WKT winding order HOT 1
- add constituentKey to name_lookup
- update occ_data documentation
- Add entry to taxonomic_names vignettes to obtain a more concise list of similar taxa HOT 1
- CRAN check fix HOT 1
- occ_download not returning all possible variables HOT 2
- lastInterpreted argument of `occ_search()` does not appear to be functioning HOT 3
- add verbatim_extensions as arg
- Continent interpretation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rgbif.