Get articles by PMID

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

Examples

if (FALSE) { # 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]) }