TwitteR setup_twitter_oauth() 失败 [英] TwitteR setup_twitter_oauth() failing

查看:37
本文介绍了TwitteR setup_twitter_oauth() 失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在关注包的小插图,更新并加载了所有必要的包,这似乎是一个非常直接的身份验证过程.相反,我收到一个错误

I was following the vignette for the package, updated and loaded all necessary packages, seemed like it would be a pretty straight-forward process to authenticate. Instead, I get an error

> setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret)
[1] "Using direct authentication"
Error in check_twitter_oauth() : OAuth authentication error:
This most likely means that you have incorrectly called setup_twitter_oauth()'

我的释义和编辑程序看起来或多或少是这样的.

My paraphrased and redacted program looks more-or-less like this.

library("twitteR")
download.file(url="http://curl.haxx.se/ca/cacert.pem", destfile="cacert.pem") #read this was necessary for Windows machines
consumer_key <- 'abc'
consumer_secret <- 'abc'
access_token <- '123-abc'
access_secret <- 'abc'
setup_twitter_oauth(consumer_key, consumer_secret, access_token, access_secret)

我阅读了很多关于这个主题的其他 SO 问题,但没有解决我的问题(他们中的大多数都使用了旧的身份验证过程).我正在尝试按照 本教程创建一个词云.

I read a lot of the other SO questions on this topic, nothing solved my issue (most of them used the old authentication process anyway). I'm trying to create a wordcloud following this tutorial.

推荐答案

只需(安装并)加载包base64enc".

Just (install and) load the package 'base64enc'.

这篇关于TwitteR setup_twitter_oauth() 失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆