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

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)

ashoksiri/twitteR documentation built on May 8, 2019, 5:57 p.m.