Load tweets for a clamour analysis

clamour_load_tweets(
  query,
  cache_file = NULL,
  timezone = Sys.timezone(),
  fixed = FALSE
)

Arguments

query

Query string to use for collecting new tweets.

cache_file

Path to an .Rds file to store cached tweets.

timezone

Time zone associated with tweets.

fixed

If TRUE only read tweets from cache and do not download new tweets.

Value

tibble containing tweets

Details

If a cache file exists tweets will first be read from here. New tweets will also be downloaded if fixed = FALSE. Cached and new tweets are combined and only the most recent version of each tweet is kept. Additional datetime, date and hour fields are created using the supplied timezone.