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

Problem to retrieve data of synonym #23

Closed
FVFaleiro opened this issue Aug 31, 2017 · 3 comments
Closed

Problem to retrieve data of synonym #23

FVFaleiro opened this issue Aug 31, 2017 · 3 comments

Comments

@FVFaleiro
Copy link

FVFaleiro commented Aug 31, 2017

The function "rl_search" do not retrieve data of synonym, but in the website is possible search the data. There is information about it in the API too (http://apiv3.iucnredlist.org/api/v3/docs#species-synonym). How can I handling it?

#Example: Synonym of _Loxodonta africana_ do not retrieve data
rl_search("Loxodonta cyclotis", key = IUCN_REDLIST_KEY)
sessionInfo()
R version 3.4.1 (2017-06-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 15063)

Matrix products: default

locale:
[1] LC_COLLATE=Portuguese_Brazil.1252  LC_CTYPE=Portuguese_Brazil.1252   
[3] LC_MONETARY=Portuguese_Brazil.1252 LC_NUMERIC=C                      
[5] LC_TIME=Portuguese_Brazil.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] rredlist_0.4.0

loaded via a namespace (and not attached):
[1] compiler_3.4.1  R6_2.2.2        curl_2.8.1      Rcpp_0.12.12   
[5] urltools_1.6.0  triebeard_0.3.0 crul_0.3.8      jsonlite_1.5   
@sckott
Copy link
Contributor

sckott commented Aug 31, 2017

thanks @FVFaleiro - First thing to note is that the Redlist website may not be consuming the same API we are using. Second, they may be using it, but then doing some extra work beyond what rl_search is doing. We don't know the status of either of these things.

I'd recommend doing eg., rl_synonyms("Loxodonta cyclotis") which finds the accepted name, then proceeding from there. Will that work for you?

@FVFaleiro
Copy link
Author

This function solve my problem, thanks @sckott !
You do a great job in your packages!
Cheers!

@sckott
Copy link
Contributor

sckott commented Aug 31, 2017

Glad it works, thx, and thanks for using the pkg and opening the issue

have a good one

@sckott sckott closed this as completed Aug 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants