twitteR icon indicating copy to clipboard operation
twitteR copied to clipboard

Error in setup_twitter_oauth

Open kimanastacio opened this issue 8 years ago • 3 comments

So, I'm trying to use Twitter's API but all I get is "Error: could not find function "setup_twitter_oauth" Here's what I'm running in RStudio:

library(twitteR)
library(wordcloud)
library(tm)
library(plyr)

consumer_key <- 'xxxxxxxx'
consumer_secret <- 'xxxxxx'
access_token <- 'xxxx-xxxx'
access_secret <- 'xxxxx'

setup_twitter_oauth  (consumer_key,
                    consumer_secret,
                    access_token,
                    access_secret)

I saw some questions like mine, but none of them worked. Wondering if someone has an updated solution (:

thanks!

kimanastacio avatar Nov 18 '16 11:11 kimanastacio

I am having the same problem. Have found a solution to it so far?

lgheorma avatar Feb 27 '17 22:02 lgheorma

same problem here. Error in setup_twitter_oauth(consumerKey, consumerSecret, accessToken, : could not find function "setup_twitter_oauth"

alwayssai avatar Jun 20 '17 18:06 alwayssai

In my case ,I was directly writting the values of 4 parameters in the function :setup_twitter_oauth and because of this R studio was showing :(Error: could not find function "setup_twitter_oauth") But when i first assigned the values of the parameters to their variables and then passed them to the function then it worked fine for me !! Hope it helps !

samridhsharma avatar Feb 13 '18 17:02 samridhsharma