Learn R Programming

easyPubMed (version 3.1.6)

EPM_esearch_basic_q: Submit a Query to the NCBI ESearch Server.

Description

Submit a Query to the NCBI ESearch Server and capture the response.

Usage

EPM_esearch_basic_q(params)

Value

Character vector including the response from the server.

Arguments

params

List including the information for querying the NCBI ESearch Server.

Author

Damiano Fantini, damiano.fantini@gmail.com

Details

The params list must include the elements listed below.

  • `q`. String corresponding to the Query to be submitted to the server.

  • `api_key`. (Optional) String corresponding to the NCBI API key.

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_q <- 'easyPubMed'
  my_params <- list(q = my_q)
  easyPubMed:::EPM_esearch_basic_q(params = my_params)
}, silent = TRUE)
setTimeLimit(elapsed = Inf)

Run the code above in your browser using DataLab