get_latest_tweet_id: A function to retrieve the most recent tweet ID from a...

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/db_utils.R

Description

Given a registered database backend which contains a table of tweets, will return the ID of the most recent tweet stored in that table

Usage

1
get_latest_tweet_id(table_name = "tweets")

Arguments

table_name

The name of the table in the database containing tweets

Details

A wrapper around a select max(id) on the table_name

Value

The ID of the most recent tweet in the table, or a stop if the table is empty

Author(s)

Jeff Gentry

See Also

register_db_backend

Examples

1
2
3
4
5
   ## Not run: 
      register_sqlite_backend("sqlit_file")
      get_latest_tweet_id("rstats_tweets")
   
## End(Not run)

twitteR documentation built on May 29, 2017, 8:26 p.m.