RMendeley (version 1.2)

msearch: msearch.R Search Method (Public Method)

Description

msearch.R Search Method (Public Method)

Usage

msearch(query, page = NA, numItems = 1000L, key = getOption("MendeleyKey", stop("need an API key for Mendeley")), curl = getCurlHandle(), ...)

Arguments

query
any search query. Can use the options: authors, year, title, published_in, followed by colons e.g. authors:Alistair Boettiger published_in:Science
page
number pages to return (optional)
numItems
number of hits to return (optional)
key
Mendeley API key (otherwise will try and load from package)
...
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

all results matching the query for the author

Details

see http://apidocs.mendeley.com/home/public-resources/search-terms

Examples

Run this code
## Not run: 
#  a = msearch('bob', , 20)
#  b = msearch('bob', 4, 20)
#  d = msearch('authors:Alistair Boettiger published_in:Science')
#  # Get the DOIs of Journal of Ecology hits (returns first 999 exact matches)
#   all <- msearch('published_in:\'Journal of Ecology\'')
#   dois <- sapply(all, function(x) x$doi)
# ## End(Not run)

Run the code above in your browser using DataLab