Skip to content

Intra-query Special Characters #15

@jjc54

Description

@jjc54

Hi,

I have a query for a name that contains an apostrophe. I am trying to escape the apostrophe by using the backslash but doing so seems to halt the query and it never fetches any information from PubMed. What is the best way to handle this?

Example:

Query <- 'Christopher O\'Grady[AU] OR Christopher P O\'Grady[AU] OR CP O\'Grady[AU]'

out.Query <- batch_pubmed_download(pubmed_query_string = Query, 
                                   format = "xml", 
                                   batch_size = 1000,
                                   encoding = "UTF8")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions