twitter - 0Auth handshake failed in R -
i attempting set tweet sentiment analysis tool in r, keep getting errors in relation 0auth not completing it's handshake.
it's using tutorial found online, i'm new r , coding in general i'm stumped.
any light can shed on appreciated:
install.packages("twitter") install.packages("plyr") install.packages("stringr") install.packages("ggplot2") install.packages("streamr") library(twitter) library(roauth) library(plyr) library(stringr) library(ggplot2) ## windows users need file download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem") requesturl <- "https://api.twitter.com/oauth/request_token" accessurl = "https://api.twitter.com/oauth/access_token" authurl = "https://api.twitter.com/oauth/authorize" consumerkey = "conkey code" consumersecret = "consec code" cred <- oauthfactory$new(consumerkey=consumerkey, consumersecret=consumersecret, requesturl=requesturl, accessurl=accessurl, authurl=authurl) cred$handshake(cainfo = system.file("curlssl", "cacert.pem", package = "rcurl") ) 1340490 load("twitter authentication.rdata") registertwitteroauth(cred)
have tried looking @ creators github page:(https://github.com/geoffjentry/twitter/blob/master/readme.md) it's easier way it. need install rtools if going way. here youtube link shows how install rtools(https://www.youtube.com/watch?v=enppmhr5srm) in chinese can still follow guy doing. hope helps.
Comments
Post a Comment