twitteR (version 1.1.9)

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

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

get_latest_tweet_id(table_name = "tweets")

Arguments

table_name
The name of the table in the database containing tweets

Value

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

Details

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

See Also

register_db_backend

Examples

Run this code
   ## Not run: 
#       register_sqlite_backend("sqlit_file")
#       get_latest_tweet_id("rstats_tweets")
#    ## End(Not run)

Run the code above in your browser using DataCamp Workspace