Usage
plostitle(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 titles (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 titles.
Examples
## Not run: # plostitle('drosophila', 'title', 99, 'FALSE')# plostitle('drosophila', limit = 5, results = 'TRUE')# ## End(Not run)