max_id: Extract min/max id (for id based pagination)

View source: R/next_cursor.R

max_idR Documentation

Extract min/max id (for id based pagination)

Description

These internal helpers extract the ids passed on to the max_id and since_id arguments to functions that use TWIT_paginate_max_id().

Usage

max_id(x)

Arguments

x

Either a data frame of tweets or a character vector of status ids.

Examples

if (auth_has_default()) {
tw <- search_tweets("#rstats")

# retrieve older tweets
older <- search_tweets("#rstats", max_id = tw)
even_older <- search_tweets("#rstats", max_id = older)

# retrieve newer tweets
newer <- search_tweets("#rstats", since_id = tw)
}

rtweet documentation built on July 21, 2022, 5:10 p.m.