Skip to contents

Look up authors in the corpus who have ORCID identifiers and fetch additional profile information from the ORCID Public API. Updates the authors table with display name alternatives and the authorships table with affiliation data.

This enricher is idempotent: re-running it updates existing ORCID data rather than duplicating it.

Usage

sm_enrich_orcid(corpus, verbose = TRUE, call = rlang::caller_env())

Arguments

corpus

An sm_corpus object.

verbose

Print progress messages?

call

Caller environment for error reporting.

Value

An sm_corpus object with updated authors and authorships tables, plus new provenance rows.

Examples

if (FALSE) { # \dontrun{
corpus <- sm_example_corpus()
corpus <- sm_enrich_orcid(corpus)
} # }