Problem in getting Twitter data using twitteR package


#1

Hi,
I am a student. I want to explore the twitteR package. I installed that package and when i tried to authenticate with oauth it is showing

setup_twitter_oauth(“API key”,“API secret”)
Error: could not find function "setup_twitter_oauth"
What i have to do to resolve this.


#2

Hi Did you resolve this issue? I am facing the same problem


#3

Not run:

A real example, but using a fictitious consumerkey and consumer

secret - you will need to supply your own

reqURL <- "https://api.twitter.com/oauth/request_token"
accessURL <- "http://api.twitter.com/oauth/access_token"
authURL <- "http://api.twitter.com/oauth/authorize"
consumerKey <- "12345pqrst6789ABCD"
consumerSecret <- "abcd1234EFGH5678ijkl0987MNOP6543qrst21"
twitCred <- OAuthFactory$new(consumerKey=consumerKey,
consumerSecret=consumerSecret,
requestURL=reqURL,
accessURL=accessURL,
authURL=authURL)
twitCred$handshake()
registerTwitterOAuth(twitCred)


#4

Re-installing twitteR from github didn’t work for me at first since I was using RStudio. I was able to install devtools and re-install twitteR package in Rgui. The original issue was resolved after reinstalling the package.