R/rtweet_functions.R
retweet_and_update.Rd
Retweet and update the database of tweets to tweet
retweet_and_update(
dir = ".",
tweets_file = "tweets_rspatial.rds",
complete_tweets_file = "complete_tweets_rspatial.rds",
log = TRUE,
logfile = "rtweet_console.log",
loop_pid_file = "loop_pid.log",
tweets_failed_file = "tweets_failed_rspatial.rds",
n_tweets = 20,
n_limit = 3,
sys_sleep = 600,
debug = FALSE,
token = NULL
)
Directory where everything will be saved
tweets_file path name relative to dir
complete_tweets_file path name relative to dir
Logical
logfile path name relative to dir
loop_pid_file path name relative to dir
tweets_failed_file path name relative to dir
n_tweets
n_limit
sys_sleep
Logical. Use TRUE to avoid tweeting while debugging
Every user should have their own Oauth (Twitter API) token. By default token = NULL this function looks for the path to a saved Twitter token via environment variables (which is what 'create_token()' sets up by default during initial token creation). For instruction on how to create a Twitter token see the tokens vignette, i.e., 'vignettes("auth", "rtweet")'.