ldentities: Get Entities

Description Usage Arguments Details Value Examples

View source: R/http.R

Description

Get a list of Lumen Database entities matching a query

Usage

1
ldentities(query = list(), page = 1, per_page = 10, verbose = TRUE, ...)

Arguments

query

A list specifying search query parameters. A reasonable default query would be query = list(term = "joe") to search for entities containing the word “joe”.

page

A numeric value specifying which page of results to return. Pagination details are stored in the meta attribute of the response object.

per_page

A numeric value specifying the number of entities to return in one page. Pagination details are stored in the meta attribute of the response object.

verbose

A logical (TRUE, by default) specifying whether to print pagination details to the console.

...

Additional arguments passed to lumenHTTP.

Details

This function retrieves a list of “entities” named in the Lumen Database that match a query. See API Documentation for details. Results are paginated by the page and per_page arguments.

Value

A list of objects of class “lumen_entity”. The default print method will display some essential details of each topic.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# return entities matching "joe"
ldentities(query = list(term = "joe"))

# use non-default pagination arguments
ldentities(query = list(term = "pub"), page = 3, per_page = 5)

## End(Not run)

lumendb documentation built on May 29, 2017, 9:01 a.m.