Search PLoS Journals by article views.

Usage

plosviews(search, byfield = NA, views = "alltime", limit = NA, url = "http://api.plos.org/search",
  key = getOption("PlosApiKey", stop("need an API key for PLoS Journals")), ...,
      curl = getCurlHandle())

Arguments

search
search terms (character)
byfield
field to search by, e.g., subject, author, etc. (character)
views
views all time (alltime) or views last 30 days (last30) (character)
limit
number of results to return (integer)
url
the PLoS API url for the function (should be left to default)
key
your PLoS API key, either enter, or loads from .Rprofile
...
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

Number of search results (results = FALSE), or number of search results plus the results themselves (results = TRUE).

Description

Search PLoS Journals by article views.

Examples

## Not run: # plosviews('10.1371/journal.pone.0002154', 'id', 'alltime')# plosviews('10.1371/journal.pone.0002154', 'id', 'last30')# plosviews('10.1371/journal.pone.0002154', 'id', 'alltime,last30')# plosviews('ecology', 'subject', 'alltime', 99)# plosviews('evolution', views = 'alltime', limit = 99)# plosviews('bird', views = 'alltime', limit = 99)# ## End(Not run)