Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: ad64d31b7e
Fetching contributors…

Cannot retrieve contributors at this time

64 lines (52 sloc) 2.062 kB
\name{almplosallviews}
\alias{almplosallviews}
\title{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{
\item{doi}{digital object identifier for an article in
PLoS Journals}
\item{source_}{source, one of counter, mpc, pubmed,
crossref, scopus, wos, citeulike, nature,
researchblogging, connotea, bloglines, postgenomic}
\item{citations}{include the individual citing document
URIs, grouped by source (logical)}
\item{history}{include a historical record of citation
counts per month (cumulative), grouped by source
(logical)}
\item{downform}{download format (json, xml or csv)}
\item{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.}
\item{key}{your PLoS API key, either enter, or loads from
.Rprofile}
\item{url}{the PLoS API url for the function (should be
left to default)}
\item{...}{optional additional curl options (debugging
tools mostly)}
\item{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{
\dontrun{
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')
}
}
Jump to Line
Something went wrong with that request. Please try again.