search_twitter_and_store:
A function to store searched tweets to a database
Description
A convenience function designed to wrap the process of running a twitter search and pushing the results to a database.
If this is called more than once, the search will start with the most recent tweet already stored.
If not NULL, restricts tweets to the given
language, given by an ISO 639-1 code
locale
If not NULL, will set the locale for the search.
As of 03/06/11 only ja is effective, as per the Twitter API
geocode
If not NULL, returns tweets by users located
within a given radius of the given latitude/longitude. See
Details in link{searchTwitter}
retryOnRateLimit
If non-zero the search command will block retry up to
X times if the rate limit is experienced. This might lead to a much longer run
time but the task will eventually complete if the retry count is high enough
All arguments but table_name are being passed directly to searchTwitter.
This function will check if table_name exists, and if so will also use a sinceID of the
most recent ID in the table. The search is performed, the returned tweets are stored
in the database via store_tweets_db.