alm_datepub: Get the date when the article was published.

View source: R/alm_datepub.R

alm_datepubR Documentation

Get the date when the article was published.

Description

Get the date when the article was published.

Usage

alm_datepub(doi = NULL, pmid = NULL, pmcid = NULL, wos = NULL,
  scp = NULL, url = NULL, get = NULL, key = NULL,
  api_url = "http://alm.plos.org/api/v5/articles", ...)

Arguments

doi

Digital object identifier for an article in PLoS Journals (character)

pmid

PubMed object identifier (numeric)

pmcid

PubMed Central object identifier (numeric)

wos

Web of Science identifier (character)

scp

Scopus identifier (character)

url

Canonical URL (character)

get

Get year, month, or day; if unspecified, whole date returned.

key

your PLoS API key, either enter, or loads from .Rprofile (character)

api_url

API endpoint, defaults to http://alm.plos.org/api/v3/articles (character)

...

optional additional curl options (debugging tools mostly)

Value

Date when article was published.

References

See a tutorial/vignette for alm at http://ropensci.org/tutorials/alm_tutorial.html

Examples

## Not run: 
alm_datepub(doi='10.1371/journal.pone.0026871')
alm_datepub('10.1371/journal.pone.0026871', get='year')

# Provide more than one DOI
dois <- c('10.1371/journal.pone.0026871','10.1371/journal.pone.0048868',
		'10.1371/journal.pone.0048705','10.1371/journal.pone.0048731')
alm_datepub(doi=dois, get="month")

## End(Not run)

ropensci/alm documentation built on May 18, 2022, 9:47 a.m.