Hi,
I'm trying to download in a CSV file all the tweets from an account between two given dates. However, I'm missing the function to name the dataset that I will later save as a CSV. My knowledge of R and rtweet is very limited, could you please help me?
This is the code I'm running:
library(rtweet)
appname <- "CATpaperRtweet"
key <- "key_not_real"
secret <- "secret_not_real"
twitter_token <- create_token(app = appname, consumer_key = key, consumer_secret = secret)
account <- "UserName"
account
get_timeline(account, n = 3200, parse = TRUE, since = '2016-08-16', until = '2016-09-11')
save_as_csv(get_timeline, A_RoyoMarine01)
Once I run the code, right after the bottom line I get the following error:
Error: is.data.frame(x) is not TRUE
Thanks a lot.