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,430 points
60 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,430 points
20 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,430 points
14 views
0 votes
1 answer

Error: could not find function - R Programming

This error usually occurs when a package ...READ MORE

answered Oct 29, 2018 in Data Analytics by Maverick
• 10,040 points
297 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
352 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
292 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
29 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
83 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
16 views
0 votes
1 answer

R Programming error in if condition

There's a small mistake in your syntax. This ...READ MORE

answered Jan 18 in Data Analytics by Tyrion anex
• 8,280 points
47 views