Enrich Missing Abstracts from External Metadata APIs
enrich_missing_abstracts.RdEnrich Missing Abstracts from External Metadata APIs
Usage
enrich_missing_abstracts(
df,
email_contact = Sys.getenv("POLITE_EMAIL"),
providers = list(epmc = fetch_abstract_epmc, crossref = fetch_abstract_crossref,
openalex = fetch_abstract_openalex)
)Examples
if (FALSE) { # \dontrun{
# Default usage (Europe PMC -> OpenAlex -> Crossref)
df_enriched <- enrich_missing_abstracts(df = my_zotero_df)
# Custom provider order: OpenAlex primary, Europe PMC secondary
custom_order <- list(
openalex = fetch_abstract_openalex,
epmc = fetch_abstract_epmc
)
df_enriched <- enrich_missing_abstracts(
df = my_zotero_df,
providers = custom_order
)
} # }