Learn R Programming

Diderot (version 0.13)

get_date_from_doi: Function to retrieve publication date based on Digital Object Identifier (DOI)

Description

This function retrieves precise publication date by querying the Digital Object Identifier (DOI) web server. Alternatively, if extract_date_from_doi is set to TRUE, the function will first try to extract a publication year from the publication DOI string. If create_bibliography is called with retrieve_pubdates = TRUE, it calls get_date_from_doi for each record to confirm publication dates.

Usage

get_date_from_doi(doi, extract_date_from_doi)

Arguments

doi

Character string representing the Digital Object Identifier (DOI) of the publication

extract_date_from_doi

Flag indicating whether to try to simply extract publication year from the DOI string before restorting to online queries to the DOI server

Value

Returns a date in YYYY-MM-DD format or YYYY-MM format if extract_date_from_doi is set to TRUE.

See Also

create_bibliography

Examples

Run this code
# NOT RUN {
# Query publication date from DOI server
get_date_from_doi(doi="10.1016/j.procs.2010.04.250",extract_date_from_doi=TRUE)
# }
# NOT RUN {
# Extract date from DOI string
get_date_from_doi(doi="10.1016/j.procs.2010.04.250",extract_date_from_doi=TRUE)
# }

Run the code above in your browser using DataLab