Learn R Programming

easyPubMed (version 3.1.6)

EPM_submit_q: Submit a Query and Read the Response from the Server.

Description

Submit a request to a server (typically, the Entrez Eutils server) and capture the response.

Usage

EPM_submit_q(qurl)

Value

Character vector including the response from the server.

Arguments

qurl

String (character vector of length 1), corresponding to the query URL to the remote server.

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({
  qry <- paste0("https://eutils.ncbi.nlm.nih.gov/entrez/eutils/", 
                "esearch.fcgi?db=pubmed&term=easyPubMed")
  easyPubMed:::EPM_submit_q(qry)
}, silent = TRUE)
setTimeLimit(elapsed = Inf)

Run the code above in your browser using DataLab