R Programming: Twitter OAuthFactory error

0 votes

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

Apr 30, 2019 in Data Analytics by Tyrion anex
• 8,380 points
278 views

1 answer to this question.

0 votes

Have you installed 'ROAuth' and 'RCurl' packages? If you haven't then install:

install.packages(c('ROAuth','RCurl'))
require('ROAuth')
require('RCurl')
answered Apr 30, 2019 by Sophie may
• 9,940 points

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.

yeah i tried that too and i have a valid consumer key

but i it is showing same error do you have any another code on sentimental analysis using twitter

please drop it here it will be helpful for me and thanks for suggestion
Hey, @Akula,

Can you please show what exactly you have done?

Related Questions In Data Analytics

0 votes
1 answer

R Programming error: twitteR OAuthFactory object

You need to install the following packages: install.packages(c('RO ...READ MORE

answered Jan 11, 2019 in Data Analytics by Tyrion anex
• 8,380 points
183 views
0 votes
2 answers

Error: could not find function - R Programming

Yes, Just like @Maverik said, It happens ...READ MORE

answered Aug 22, 2019 in Data Analytics by anonymous
• 32,460 points
16,388 views
0 votes
1 answer

"no applicable method" Error in r programming

This is caused by using an object-oriented ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 51,890 points
400 views
0 votes
1 answer

“subscript out of bounds” Error in r programming

This error is likely to occur when ...READ MORE

answered Oct 31, 2018 in Data Analytics by Kalgi
• 51,890 points
5,716 views
0 votes
1 answer

R programming error

Alright, you can either use gsub to match the ...READ MORE

answered Dec 18, 2018 in Data Analytics by Tyrion anex
• 8,380 points
64 views
0 votes
1 answer

R Programming error in 'fert'

You're using a factor: fert <- factor(c(50,20,10,10,20,50)) levels(fert) #[1] ...READ MORE

answered Dec 27, 2018 in Data Analytics by Sophie may
• 9,940 points
93 views
0 votes
1 answer

R Programming: Market Basket Analysis Error

The basket.sorted() has less than 5 rules. Refer ...READ MORE

answered Feb 11, 2019 in Data Analytics by Sophie may
• 9,940 points
384 views
0 votes
1 answer

R Programming: regexpr error

The below code will help: gregexpr("D", x) # [[1]] # ...READ MORE

answered Feb 21, 2019 in Data Analytics by Tyrion anex
• 8,380 points
63 views
0 votes
1 answer

R programming error — twitteR OAuthFactory object

Make sure you have installed the required ...READ MORE

answered May 13, 2019 in Data Analytics by Sophie may
• 9,940 points
87 views
0 votes
1 answer

R programming: Unexpected symbol error

Format your code this way: myfunction <- function() ...READ MORE

answered Dec 17, 2018 in Data Analytics by Sophie may
• 9,940 points
1,069 views