Skip to contents

Tries NCBI EFetch (db = pmc) first, then the PMC OAI-PMH service. Results are cached on disk under retraction_cache_dir(); an existing non-empty cache file is reused unless overwrite = TRUE.

Usage

pmc_fetch_xml(pmcid, cache = TRUE, overwrite = FALSE)

Arguments

pmcid

A PMCID (any form accepted by normalize_pmcid()).

cache

Cache the XML on disk and reuse it on later calls.

overwrite

Re-fetch even if a cache file exists.

Value

An xml_document, or NULL if the article could not be retrieved.

Examples

if (FALSE) { # \dontrun{
doc <- pmc_fetch_xml("PMC5334499")
} # }