get_latest_tweet_id {twitteR} | R Documentation |
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 |
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
Examples
## Not run:
register_sqlite_backend("sqlit_file")
get_latest_tweet_id("rstats_tweets")
## End(Not run)
[Package twitteR version 1.1.9 Index]