cnvs_next: Get the next, previous, first or last page of results

Description Usage Arguments Details Value See Also Examples

View source: R/pagination.R

Description

Get the next, previous, first or last page of results

Usage

1
2
3
4
5
6
7
cnvs_next(response)

cnvs_prev(response)

cnvs_first(response)

cnvs_last(response)

Arguments

response

An object returned by a cnvs() call.

Details

Note that these are not always defined. E.g. if the first page was queried (the default), then there are no first and previous pages defined. If there is no next page, then there is no next page defined, etc.

If the requested page does not exist, an error is thrown.

Value

Answer from the API.

See Also

The .limit argument to cnvs() supports fetching more than one page.

Examples

1
2
3
4
5
6
7
## Not run: 
x <- cnvs()
sapply(x, "[[", "login")
x2 <- cnvs_next(x)
sapply(x2, "[[", "login")

## End(Not run)

cwickham/cnvs documentation built on Oct. 20, 2020, 5:34 a.m.