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

function get_species_list fails for countries with no species #9

Open
bluehill opened this issue Sep 1, 2019 · 1 comment
Open
Labels
bug Something isn't working

Comments

@bluehill
Copy link

bluehill commented Sep 1, 2019

Example:
get_species_list("egypt")
Error in guess_header_(datasource, tokenizer, locale) :
Cannot read file C:/Users/Alan Lee/AppData/Local/Temp/RtmpQ71ZDZ/file6078395bae: The volume for a file has been externally altered so that the opened file is no longer valid.

Strongly suggest that at least in the beta version this call should be restricted to southafrica (and or surrounding southern african countries), nigeria, kenya: all other countries have very small numbers of contributions.

valid_countries <- c("kenya", "southafrica", "nigeria", "botswana", "namibia", "zimbabwe", "lesotho", "swaziland", "mozambique")

example addition if(country !%in% valid_countries) {
stop(message = "Sorry; currently this call is only supported for Kenya, Southern Africa and Nigeria")
}

@davidclarance
Copy link
Owner

Good point. Will add a catch error.

@davidclarance davidclarance added the bug Something isn't working label Sep 1, 2019
@davidclarance davidclarance changed the title function get_species_list fails for countries with no species: bug function get_species_list fails for countries with no species Sep 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants