if (FALSE) {
# Fetch works for a public ORCID
works <- orcid_works("0000-0002-1825-0097")
print(works)
# Filter by type to distinguish between different publication types
journal_articles <- works[type == "journal-article"]
conference_posters <- works[type == "conference-poster"]
datasets <- works[type == "data-set"]
preprints <- works[type == "preprint"]
# With authentication
Sys.setenv(ORCID_TOKEN = "your-token-here")
works <- orcid_works("0000-0002-1825-0097")
}
Run the code above in your browser using DataLab