wh_paginate: Paginate

Description Usage Arguments Value Examples

View source: R/paginate.R

Description

Paginate through query.

Usage

1
2
3
4
wh_paginate(wh, p = Inf, quiet = !interactive())

## S3 method for class 'webhoser'
wh_paginate(wh, p = Inf, quiet = !interactive())

Arguments

wh

object of class webhoser as returned by wh_news.

p

number of pages, defaults to Inf which will paginate as much as possible.

quiet

if FALSE does not return useful information to console.

Value

object of class webhoser

Examples

1
2
3
4
5
6
7
8
## Not run: 
token <- <- wh_token("xXX-x0X0xX0X-00X")

wh_news(q = "Programming languages") %>%
  wh_paginate(p = 3) %>% 
  wh_collect() -> lang

## End(Not run)

news-r/webhoser documentation built on Aug. 1, 2019, 5:50 p.m.