I am using R and want to use the twitteR package available in CRAN.
I installed the twitteR package using:
install.packages(twitteR)
then downloaded the package using
library(twitteR)
after that I wanted to run the first command to get the latest trends on twitter:
getTrends(period="weekly")
which showed the following error:
Error in getTrends(period = "weekly") : argument "woeid" is missing, with no default
Also the command:
searchTwitter("#orms")
showed an error, namely:
Error in twInterfaceObj$doAPICall(cmd, params, "GET", ...) : OAuth authentication is required with Twitter API v1.1
And also for the team:
userTimeline("informs")
error output appeared:
Error in twInterfaceObj$doAPICall(cmd, params, method, ...) : OAuth authentication is required with Twitter API v1.1
What is the reason for this? From my research so far, I have found out that this has something to do with oauth. But in fact, I do not know what oauth is and how to configure it, so I can use the twitteR package correctly.
Can someone help me on this?
Thank you for your support.
Best wishes!!!
source share