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

Validate retrieve_search_results() input #78

Open
1 task
katrinleinweber opened this issue May 21, 2018 · 1 comment
Open
1 task

Validate retrieve_search_results() input #78

katrinleinweber opened this issue May 21, 2018 · 1 comment

Comments

@katrinleinweber
Copy link
Collaborator

katrinleinweber commented May 21, 2018

Right below https://github.com/TIBHannover/BacDiveR/blob/master/R/retrieve_search_results.R#L14, the queryURL should be validated ("defensive programming") somehow. Maybe using stringi::stri_startswith("https://bacdive.dsmz.de/advsearch?site=advsearch") and/or stringi::stri_endswith("&advsearch=search")?

In either case, a test should be added whether an error is triggered by using a non-advsearch URL.

@katrinleinweber
Copy link
Collaborator Author

Related to #71.

katrinleinweber added a commit that referenced this issue Nov 19, 2018
Validate inputs (fix #71 & #78)
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

1 participant