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

View source: R/epm_all_fx.R

EPM_submit_qR Documentation

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)

Arguments

qurl

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

Value

Character vector including the response from the server.

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({
  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)


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