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 in Data Analytics by Sophie may
• 9,870 points
93 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 by Tyrion anex
• 8,280 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 in Data Analytics by Sophie may
• 9,870 points
35 views
0 votes
1 answer

R Programming: Twitter OAuthFactory error

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

answered Apr 30 in Data Analytics by Sophie may
• 9,870 points
106 views
0 votes
2 answers

Error: could not find function - R Programming

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

answered Aug 22 in Data Analytics by anonymous
• 31,840 points
4,787 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,040 points
785 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,040 points
520 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,040 points
43 views
0 votes
1 answer

Error saying "Error in df$item : object of type 'closure' is not subsettable" when trying to use arules package

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

answered Nov 15, 2018 in Data Analytics by Maverick
• 10,040 points
177 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,280 points
29 views
0 votes
2 answers

R Programming error in if condition

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

answered Aug 26 in Data Analytics by anonymous
• 31,840 points
62 views