Usage
almdatepub(doi, get = NA, sleep = 0, url = "http://alm.plos.org/articles", key = getOption("PlosApiKey",
stop("need an API key for PLoS Journals")), ..., curl = getCurlHandle())
Arguments
- doi
- Digital object identifier for an article in
PLoS Journals
- get
- Get year, month, or day; if unspecified, whole
date returned.
- sleep
- Time (in seconds) before function sends API
call - defaults to zero. Set to higher number if you are
using this function in a loop with many API calls.
- key
- your PLoS API key, either enter, or loads from
.Rprofile
- url
- the PLoS API url for the function (should be
left to default)
- ...
- optional additional curl options (debugging
tools mostly)
- curl
- If using in a loop, call getCurlHandle()
first and pass the returned value in here (avoids
unnecessary footprint)
Value
Date when article was published.
Description
Get the date when the article was published.
Examples
[1] "2012-03-26"
[1] 2012
# DOI that does not work, gives NA so that looping isn't interrupted
# almdatepub(doi="10.1371/journal.pone.002699", get='year')