Shivi, I’m not sure how you have installed ‘twitterR’ package. But please follow below steps and your issue will be resolved: - Ensure there are no objects in memory. To be sure run these commands : - .r.restartR() - rm(list=ls()) - gc()
# Remove packages remove.packages('twitteR') remove.packages('ROAuth') remove.packages('rjson') remove.packages('bit64') remove.packages('httr') remove.packages('devtools') - Execute below in sequence and later assign your keys to get going: #Twitter analytics with R install.packages(c("devtools", "rjson", "bit64", "httr")) install_github("twitteR", "geoffjentry") install.packages("ROAuth") library(devtools) library(ROAuth) library(twitteR) Regards, Sunny Singha > On 15-Feb-2016, at 6:36 PM, SHIVI BHATIA <shivi.bha...@safexpress.com> wrote: > > Hi Sandeep, > > Here is my authorization code: > > setup_twitter_oauth(consumer_key,consumer_secret,access_token,access_secret) > . > > Prior to this I have just added my consumer key and the other var after > logging at https://apps.twitter.com. Does this help. > > -----Original Message----- > From: Sandeep Rana [mailto:sunnysingha.analyt...@gmail.com] > Sent: Monday, February 15, 2016 5:52 PM > To: SHIVI BHATIA <shivi.bha...@safexpress.com> > Cc: r-help@r-project.org > Subject: Re: [R] Error with Twitter Authorization for Sentiment Analysis > > Shivi, > Could you also share the piece of code to have a look at ? > > Regards, > Sunny Singha > >> On 14-Feb-2016, at 3:45 PM, SHIVI BHATIA <shivi.bha...@safexpress.com> > wrote: >> >> Dear Team, >> >> >> >> Every now and then I face issues while connecting to Twitter: >> >> >> >> Error in check_twitter_oauth() : OAuth authentication error: >> >> This most likely means that you have incorrectly called >> setup_twitter_oauth()' >> >> >> >> I have checked multiple github suggestion and statsexchange forum & >> have followed all suggestion such as to update httpuv package and >> calling out the library names in a certain manner however I am still >> not successful.. Also apart from these there was also recommendation >> on httr package to be called first though while calling the httr package I > got this message: >> >> >> >> Error in unloadNamespace(package) : >> namespace 'httr' is imported by 'twitteR' so cannot be unloaded >> >> >> Not sure on what is to be done here hence require help from the forum. >> >> >> >> >> >> Thanks, Shivi >> >> Mb: 9891002021 >> >> >> >> This e-mail is confidential. It may also be legally privileged. If you are > not the addressee you may not copy, forward, disclose or use any part of it. > If you have received this message in error, please delete it and all copies > from your system and notify the sender immediately by return e-mail. > Internet communications cannot be guaranteed to be timely, secure, error or > virus-free. The sender does not accept liability for any errors or > omissions. >> ______________________________________________ >> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > > This e-mail is confidential. It may also be legally privileged. If you are > not the addressee you may not copy, forward, disclose or use any part of it. > If you have received this message in error, please delete it and all copies > from your system and notify the sender immediately by return e-mail. Internet > communications cannot be guaranteed to be timely, secure, error or > virus-free. The sender does not accept liability for any errors or omissions. > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.