tagged: tagged.R Search Method (Public Method)

Description Usage Arguments Value Examples

Description

tagged.R Search Method (Public Method)

Usage

1
2
3
4
tagged(query, page = NA, numItems = 1000L, cat = NA, subcat = NA,
  key = getOption("MendeleyKey", stop("need an API key for Mendeley")),
  url = sprintf("%s/%s", "http://api.mendeley.com/oapi/documents/tagged",
  query), curl = getCurlHandle(), ...)

Arguments

query

any possible tag in Mendeley

page

number pages to return (optional)

cat

Only tags appearing in this subject category See the search-categories function to obtain a list of the numeric codes corresponding to each of the main subject categories.

subcat

a subcategory to restrict searching to

numItems

number of hits to return (optional)

key

Mendeley API key (otherwise will try and load from package)

url

the Mendeley API url for the function (should be left to default)

...

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

Examples

1
2
3
4
5
## Not run: 
a <- tagged('phylogenetics')
b <- tagged('phylogenetics', cat=3)  # biological sciences

## End(Not run)

ropensci/RMendeley documentation built on May 27, 2019, 2:03 p.m.