Retrieve works associated with an ORCID identifier
via the ORCID Public API and return the results as an sm_corpus.
This fetches work summaries from the public API endpoint
https://pub.orcid.org/v3.0/{orcid}/works.
Usage
sm_fetch_orcid(orcid, verbose = TRUE, call = rlang::caller_env())Examples
# \donttest{
# Queries the ORCID public API; 0000-0002-1825-0097 is the ORCID test record.
if (requireNamespace("curl", quietly = TRUE) && curl::has_internet()) {
corpus <- try(sm_fetch_orcid("0000-0002-1825-0097"))
print(corpus)
}
#> ℹ Fetching works for ORCID "0000-0002-1825-0097"...
#> ✔ Parsed 6 ORCID works into sm_corpus.
#>
#> ── <sm_corpus> ─────────────────────────────────────────────────────────────────
#> Works: 6 | Authors: 1 | Institutions: 0
#> Years: 1987 - 2012
#> Sources (journals): 0
#> Embeddings: none
#> Provenance: orcid (6)
#> Status: Unlocked (last refreshed: never)
# }