r - RStudio on a Server: ROAuth no longer used in favor of httr? [Twitter API] -


i'm running r studio on aws "ubuntu server 12.04.2 lts" , accessing r studio via browser.

when try authenticate @ twitter api using package roauth code:

credential<-oauthfactory$new(consumerkey="xxxxx",                              consumersecret="xxxxx",                              requesturl="https://api.twitter.com/oauth/request_token",                              accessurl="https://api.twitter.com/oauth/access_token",                              authurl="https://api.twitter.com/oauth/authorize")  credential$handshake() registertwitteroauth(credential) 

i error after registertwitteroauth(credential) saying

  error in registertwitteroauth(credential) :    roauth no longer used in favor of httr, please see ?setup_twitter_oauth 

however can't find further explanation..

apparently twitter package changed right before posted this, new way authenticate is

setup_twitter_oauth(customer_key, customer_secret, access_token, access_secret, credentials_file=null) 

see https://github.com/geoffjentry/twitter


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -