Queries the public APIs of ORCID, OpenAlex and DataCite for one ORCID
iD. Outputs found in several sources are merged by DOI. A source that
fails is reported in $sources and never stops the collection.
Usage
ac_collect(
orcid,
sources = ac_sources,
mailto = getOption("academiccareer.mailto"),
api_key = getOption("academiccareer.openalex_key", Sys.getenv("OPENALEX_API_KEY")),
max_works = 1000,
timeout = 30
)Arguments
- orcid
An ORCID iD.
- sources
Any of
"orcid","openalex"and"datacite".- mailto
Optional e-mail address sent to OpenAlex, as it asks. Defaults to the option
academiccareer.mailto.- api_key
Optional OpenAlex API key, if you have one. Defaults to the option
academiccareer.openalex_keyor the environment variableOPENALEX_API_KEY.- max_works
Maximum number of works read from OpenAlex and DataCite.
- timeout
Seconds to wait for each request.
Details
Use it for your own record, or with the consent of the person: public records are still personal data. The function takes one ORCID iD at a time by design, and the package has no function to compare or rank people.
OpenAlex matches works to people automatically and makes mistakes, especially for common names and for ORCID iDs that other people have used by error. Check the evidence before using it.
Examples
# \donttest{
# Josiah Carberry is a fictitious researcher that ORCID keeps for testing.
career <- ac_collect("0000-0002-1825-0097", sources = "orcid")
career
#> <ac_career: Josiah Carberry>
#> ORCID: https://orcid.org/0000-0002-1825-0097
#> Span: 1929-2012
#> Evidence: 9 items (0 declared by the researcher)
#> Research outputs 6
#> Positions 2
#> Peer review and service 1
#> Sources: orcid (ok)
# }