44801/r-programming-twitter-oauthfactory-error
I am trying to download twitter feeds. When I do this, I get an error 'OAuthFactory' not found. Below is my code:
my.key <- "xxx" #consumer secret my.secret <- "xxx" cred <- OAuthFactory$new(consumerKey=my.key, consumerSecret=my.secret, requestURL = 'https://api.twitter.com/oauth/request_token', accessURL = 'https://api.twitter.com/oauth/access_token', authURL = 'https://api.twitter.com/oauth/authorize') Error: object 'OAuthFactory' not found
Have you installed 'ROAuth' and 'RCurl' packages? If you haven't then install:
install.packages(c('ROAuth','RCurl')) require('ROAuth') require('RCurl')
yeah I installed the packages even though that error is appearing
Hey, @Akaula,
Check that you have installed all these packages listed below:
install.packages("bitops") install.packages("RCurl") install.packages("RJSONIO") install.packages("twitteR") install.packages("ROAuth")
And have a valid twitter key.
You need to install the following packages: install.packages(c('RO ...READ MORE
Yes, Just like @Maverik said, It happens ...READ MORE
This is caused by using an object-oriented ...READ MORE
This error is likely to occur when ...READ MORE
Alright, you can either use gsub to match the ...READ MORE
You're using a factor: fert <- factor(c(50,20,10,10,20,50)) levels(fert) #[1] ...READ MORE
The basket.sorted() has less than 5 rules. Refer ...READ MORE
The below code will help: gregexpr("D", x) # [[1]] # ...READ MORE
Make sure you have installed the required ...READ MORE
Format your code this way: myfunction <- function() ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.