Dear, I met one problem when create_token ( app= " “, consumer_key=” “, consumer_secret=” "…) but it is wrong
I’m sure it’s no problem in my account, because I can successfully run it in package(“twitteR”)
Could anyone tell me why " cannot open file ‘C:/Users/rebeccalai/OneDrive/??/.rtweet_token.rds’: Invalid argument" ? Thanks in advance!!
dewey
#2
This is a problem with your code not the API itself. You are not showing enough of your code to make it possible to debug this from afar.
Thanks for your reply. Now I solved the problem, I read the document again. And reinstall the package follows that below code:
## install remotes package if it's not already
if (!requireNamespace("remotes", quietly = TRUE)) {
install.packages("remotes")
}
## install dev version of rtweet from github
remotes::install_github("ropensci/rtweet")
It worked out successfully. So I think it might be correlated with the remotes package.
Thank you again. thanks
1 Like