Learn R Programming

orcidtr (version 0.1.0)

orcid_bio: Retrieve biography from ORCID

Description

Fetches just the biography/about text for an ORCID record. This is a simplified alternative to orcid_person when you only need the biography text.

Usage

orcid_bio(orcid_id, token = NULL)

Value

A data.table with the following columns:

orcid

ORCID identifier

biography

Biography text

visibility

Visibility setting (public, limited, private)

Returns a data.table with NA biography if not available.

Arguments

orcid_id

Character string. A valid ORCID identifier in the format XXXX-XXXX-XXXX-XXXX. Can also handle URLs like https://orcid.org/XXXX-XXXX-XXXX-XXXX.

token

Character string or NULL. Optional API token for authenticated requests. If NULL (default), checks the ORCID_TOKEN environment variable.

Details

This function queries the ORCID public API endpoint: https://pub.orcid.org/v3.0/{orcid-id}/biography

References

ORCID API Documentation: https://info.orcid.org/documentation/api-tutorials/

See Also

orcid_person

Examples

Run this code
if (FALSE) {
# Fetch biography only
bio <- orcid_bio("0000-0002-1825-0097")
print(bio$biography)
}

Run the code above in your browser using DataLab