Get PLoS altmetrics as xml, json, or csv.

Usage

almplosallviews(doi, source_ = NA, citations = FALSE, history = FALSE, downform = 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
source_
source, one of counter, mpc, pubmed, crossref, scopus, wos, citeulike, nature, researchblogging, connotea, bloglines, postgenomic
citations
include the individual citing document URIs, grouped by source (logical)
history
include a historical record of citation counts per month (cumulative), grouped by source (logical)
downform
download format (json, xml or csv)
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

PLoS altmetrics as xml, json, or csv.

Description

Get PLoS altmetrics as xml, json, or csv.

Examples

## Not run: # almplosallviews('10.1371/journal.pbio.0000012', 'counter', T, T, 'xml')# almplosallviews('10.1371/journal.pbio.0000012', 'crossref', F, F, 'json')# almplosallviews('10.1371/journal.pbio.0000012', 'citeulike', F, F, 'json')# almplosallviews('10.1371/journal.pone.0002554', 'facebook', T, T, 'json')# almplosallviews('10.1371/journal.pone.0002554', 'mendeley', F, T, 'json')# # # DOI that does not work, gives NA so that looping isn't interrupted# almplosallviews("10.1371/journal.pone.002699", 'citeulike', F, F, 'json')# ## End(Not run)