twitteR and ROAuth

回眸只為那壹抹淺笑 提交于 2019-12-04 09:03:43

This hopefully was resolved with the version that I just uploaded yesterday. If you're not already using 0.9.1 version of ROAuth, can you update your package and try again?

I just updated twitteR and ROAuth packages and ran these commands, and everything worked for me:

cred = getTwitterOAuth(consumerKey, consumerSecret)
registerTwitterOAuth(cred)
tweet("something incredibly interesting...")

Seems that twitterR now provides a cleaner interface to register the OAuth credential, which does not require explicit use of the OAuthFactory$new or handshake calls. When I tried explicitly calling these functions, things started to break. But when I used the interface above, everything worked smoothly.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!