pubmed_search: Perform a search on PubMed

Description Usage Arguments Value Examples

View source: R/pubmed_search.R

Description

This function wraps easyPubMed::get_pubmed_ids and easyPubMed::fetch_pubmed_data to collect results of a query to PubMed

Usage

1
pubmed_search(search_string, max_to_get = 25, api_key = NULL)

Arguments

search_string

(character vector of length 1) that is used for querying PubMed (standard PubMed syntax, see reference for details).

max_to_get

Integer (>= 1): maximum number of records to retrieve. Note that, if they are not finished, a complete batch will be always retrieved; hence, more than max_to_get records will be retrieved Set it to Inf to be sure to retrieve all the possible results.

api_key

(character vector of length 1): user-specific API key to increase the limit of queries per second above three. You can obtain your key from NCBI (see https://ncbiinsights.ncbi.nlm.nih.gov/2017/11/02/new-api-keys-for-the-e-utilities/

Value

an object of class pubmed

Examples

1
2
3
4
5
## Not run: 
    pubmed_search("machine learning", 1)
    pubmed_search("aaaa", 1) # no result

## End(Not run)

CorradoLanera/bibsearch documentation built on Jan. 1, 2020, 10:24 p.m.