Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

occ_download with multiple taxonKeys inconsistency? #283

Closed
poldham opened this issue Dec 21, 2017 · 2 comments
Closed

occ_download with multiple taxonKeys inconsistency? #283

poldham opened this issue Dec 21, 2017 · 2 comments
Milestone

Comments

@poldham
Copy link

poldham commented Dec 21, 2017

Dear Scott,

When spinning up an occ_download this example works as expected.

occ_download('taxonKey = 3119195', user = Sys.getenv("GBIF_USER"))

However, I think when entering multiple taxonKeys the behaviour seems inconsistent.

For example, running the occ_download complex example as is works. But if shortened to:

occ_download("taxonKey = 2480946,5229208", user = Sys.getenv("GBIF_USER"))

returns Error: Bad Request HTTP 400

I then tried:

res <- occ_download("taxonKey = 2480946,5229208", "basisOfRecord = HUMAN_OBSERVATION,OBSERVATION,MACHINE_OBSERVATION")

That works. That suggests that for multiple taxonKeys some extra args have to be added?

Best,

Paul

@sckott
Copy link
Contributor

sckott commented Dec 21, 2017

hugh, don't know off the top. will look into it

@sckott sckott added this to the v1.0 milestone Feb 20, 2018
@sckott sckott closed this as completed in ccfc7c8 Mar 5, 2018
@sckott
Copy link
Contributor

sckott commented Mar 5, 2018

@poldham think i fixed it. can you reinstall and try again remotes::install_github("ropensci/rgbif"). sorry it took me a while to get around to this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants