r - twitteR Error when authorizing token -
i trying register oauth token , running error doesn't seem explained anywhere can find.
require("roauth") require("twitter") requesturl <- "https://api.twitter.com/oauth/request_token" accessurl <- "http://api.twitter.com/oauth/access_token" authurl <- "http://api.twitter.com/oauth/authorize"
here plug in consumer key , consumer secret obtained properly.
consumer_key <- "xxxxxxxxxxxxxxxxxxxxx" consumer_secret <- "yyyyyyyyyyyyyyyyyyyyy"
this first attempt:
twitcred <- oauthfactory$new(consumerkey = consumer_key, consumersecret = consumer_secret, requesturl = requesturl, accessurl = accessurl, authurl = authurl)
but following error:
error in get(name, envir = asnamespace(pkg), inherits = false) : object '.setdummyfield' not found
other posts suggested use following:
gettwitteroauth(consumer_key, consumer_secret)
but same error. can't seem find error reproduced anywhere else making me suspect has nothing twitter
or roauth
packages. i'm new these advice on how fix error appreciated.
i had same problem. following sequence of commands solved problem:
consumerkey <- ... consumersecret <- ... twitcred <- gettwitteroauth(consumer_key= consumerkey, consumer_secret=consumersecret) searchtwitter()
notice didn't use registertwitteroauth(twitcred)
. think if wanna save , later load twitcred
have use registertwitteroauth(twitcred)
after loading.
i hope helps.
Comments
Post a Comment