guardian_tags: Search Guardian Tags

Description Usage Arguments See Also Examples

Description

guardian_tags lets you directly search The Guardian for their tags - metadata used to classify content.

Usage

1
2
guardian_tags(api_key, query, section = NULL, reference = NULL,
  reference_type = NULL, page = NULL, page_size = 50, ...)

Arguments

api_key

A key to the Guardian API, which can be obtained here.

query

Your search query. This can contain operators (sausage AND mash) or phrases ("sausage & mash"); by default, searches work as an OR, looking for the presence of any one individual word in the query.

section

the section, or sections, of The Guardian that you want to limit the search to. Multiple sections may be concatenated together using boolean operators; see guardian_and and guardian_and.

reference

the references to limit the search to; only tags that include those references (and meet other conditions) will be returned. Also accepts boolean operators.

reference_type

the type of reference (such as isbn). Also accepts boolean operators.

page

a particular page of results to return. Useful when returning multiple sets of data with the same query; you can repeat the query, incrementing the value in page.

page_size

the maximum number of items to return; anywhere between 1 and 50. Set to 50 by default.

...

further arguments to pass to httr's GET.

See Also

guardian_content.

Examples

1
2
3
4
5
## Not run: 
# Simple example
results <- guardian_tags("test", "green")

## End(Not run)

Ironholds/rdian documentation built on May 7, 2019, 6:42 a.m.