epm_query_by_pmid: Query PubMed by PMIDs.

View source: R/epm_all_fx.R

epm_query_by_pmidR Documentation

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)

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.

Value

an easyPubMed object.

Author(s)

Damiano Fantini, damiano.fantini@gmail.com

References

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

Examples

# 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)


dami82/easyPubMed documentation built on Jan. 4, 2024, 6:21 a.m.