Learn R Programming

rif (version 0.2.0)

literature_pmid: Get articles by PMID

Description

Get articles by PMID

Usage

literature_pmid(pmid, key = NULL, ...)

Arguments

pmid
One or more PMID's in a vector or list
key
(character) API key. required either passed in here or save as an env var or R option. see rif and Startup
...
Curl options passed on to crul::HttpClient()

See Also

Other literature: literature_mlpmid, literature_mltext, literature_retractions

Examples

Run this code
## Not run: ------------------------------------
# # get PMIDs for retracted articles
# (out <- literature_retractions())
# # then get info on some articles
# literature_pmid(pmid = out[1])
# literature_pmid(pmid = out[1:2])
# literature_pmid(pmid = out[1:10])
## ---------------------------------------------

Run the code above in your browser using DataLab