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

Plus signs in queries #120

Closed
arendsee opened this issue Dec 7, 2017 · 1 comment
Closed

Plus signs in queries #120

arendsee opened this issue Dec 7, 2017 · 1 comment

Comments

@arendsee
Copy link

arendsee commented Dec 7, 2017

Entrez supports long and short versions of tags, for example:

esearch.fcgi?db=taxonomy&term=Bacteria[Next+Level]

Is equivalent to

esearch.fcgi?db=taxonomy&term=Bacteria[NXLV]

But in rentrez:

# this works
rentrez::entrez_search(db='taxonomy', term='Bacteria[NXLV]')
# this doesn't
rentrez::entrez_search(db='taxonomy', term='Bacteria[Next+Level]')
# but if I remove the plus sign, all's well
rentrez::entrez_search(db='taxonomy', term='Bacteria[Next Level]')

This is pretty trivial (I'm even a little embarrassed to bring it up), but it could cause some confusion for people who copy and paste queries from URLs.

@dwinter dwinter self-assigned this Dec 18, 2017
@dwinter
Copy link
Member

dwinter commented Dec 18, 2017

Hi @arendsee ,

Sorry for the delay in getting to this: end of the year is a busy time. I can see how this could be confusing for folks moving queries from the web to rentrez. I'll leave this issue open until I make a note in the in-line docs, the vignette or both.

Thanks for submitting the issue, always like to hear how users are getting on with rentrez!

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