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
• 9,900 points
109 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,320 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
• 9,900 points
54 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
• 9,900 points
137 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,440 points
7,207 views
0 votes
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,800 points
990 views
+9 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 8, 2018 in Data Analytics by Anmol
• 3,680 points
97 views
0 votes
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,800 points
671 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,800 points
52 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,320 points
40 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
• 32,440 points
73 views