Learn R Programming

easyPubMed (version 3.1.6)

epm_query_by_pmid: Query PubMed by PMIDs.

Description

Query PubMed using a list of PubMed record identifiers (PMIDs) as input. The list of identifiers is automatically split into a series of manageable-sized chunks (max n=50 PMIDs per chunk).

Usage

epm_query_by_pmid(pmids, api_key = NULL, verbose = TRUE)

Value

an easyPubMed object.

Arguments

pmids

Vector (character or numeric), list of Pubmed record identifiers (PMIDs). Values will be coerced to character.

api_key

String (character vector of length 1), corresponding to the NCBI API key. Can be `NULL`.

verbose

Logical, shall details about the progress of the operation be printed to console.

Author

Damiano Fantini, damiano.fantini@gmail.com

References

https://www.data-pulse.com/dev_site/easypubmed/

Examples

Run this code
# Note: a time limit can be set in order to kill the operation when/if 
# the NCBI/Entrez server becomes unresponsive.
setTimeLimit(elapsed = 4.9)
try({
  my_pmids <- c(34097668, 34097669, 34097670)
  epm_query_by_pmid(my_pmids)
}, silent = TRUE)
setTimeLimit(elapsed = Inf)

Run the code above in your browser using DataLab