R Programming error twitteR OAuthFactory object

0 votes

I'm creating a R session to download twitter feeds.  I have all the libraries needed for the program and packages installed. I got an error which says 'object OAuthFactory not found'.

This 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
Jan 11, 2019 in Data Analytics by Sophie may
• 10,620 points
976 views

1 answer to this question.

0 votes

You need to install the following packages:

install.packages(c('ROAuth','RCurl'))
require('ROAuth')
require('RCurl')
answered Jan 11, 2019 by Tyrion anex
• 8,700 points

Related Questions In Data Analytics

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
• 10,620 points
741 views
0 votes
1 answer

R Programming: Twitter OAuthFactory error

Have you installed 'ROAuth' and 'RCurl' packages? ...READ MORE

answered Apr 30, 2019 in Data Analytics by Sophie may
• 10,620 points
1,658 views
+3 votes
2 answers

Error: could not find function - R Programming

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

answered Aug 23, 2019 in Data Analytics by anonymous
• 33,030 points
33,703 views
+1 vote
1 answer

"Error in eval(ei, envir) : object 'RDX2' not found" when trying to source the code in R

This is a very common issue that ...READ MORE

answered Oct 30, 2018 in Data Analytics by Maverick
• 10,840 points
5,109 views
+10 votes
3 answers

Which is a better initiative to learn data science: Python or R?

Well it truly depends on your requirement, If ...READ MORE

answered Aug 9, 2018 in Data Analytics by Abhi
• 3,720 points
1,627 views
+1 vote
1 answer

Error saying "vector size cannot be NA" when using R with data mining

You can use the removesparseterm function.  Removes sparse ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
4,832 views
+1 vote
2 answers
0 votes
1 answer

Trying to find frequent itemsets of a data set using arules package

Try replacing ID <- c("A123","A123","A123","A123","B456","B456","B456") item <- c("bread", "butter", "milk", ...READ MORE

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,840 points
812 views
+1 vote
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,700 points
658 views
0 votes
2 answers

R Programming error in if condition

Hi. Instead of breaking the line add it ...READ MORE

answered Aug 26, 2019 in Data Analytics by anonymous
• 33,030 points
1,058 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP