Search PLoS Journals abstracts.

Usage

plosabstract(terms, fields = NA, limit = NA, results = FALSE, url = "http://api.plos.org/search",
  key = getOption("PlosApiKey", stop("need an API key for PLoS Journals")), ...,
      curl = getCurlHandle())

Arguments

terms
search terms for article abstract (character)
fields
fields to return from search (character) [e.g., 'id,title'], any combination of search fields [see plosfields$field]
limit
number of results to return (integer)
results
print results or not (TRUE or FALSE)
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 abstracts.

Examples

## Not run: # plosabstract('drosophila', 'abstract', 2, 'FALSE')# plosabstract('drosophila', limit = 5, results = 'TRUE')# ## End(Not run)