我跟踪的软件包,更新和加载所有必要的包,这似乎是一个相当直截了当的过程认证。相反,我得到了一个错误
> 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()'我的翻译和编辑的程序看上去或多或少像这样。
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)我读了很多其他的,所以关于这个主题的问题,没有解决我的问题(他们中的大多数都使用了旧的身份验证过程)。我正在尝试在this tutorial之后创建一个wordcloud。
发布于 2015-08-30 10:38:31
只需(安装和)加载包‘Just 64enc’。
发布于 2016-10-20 09:27:14
我必须执行以下设置才能使此工作
包版本:base64enc 64 0.1_0.1-3 httr_1.2.1 twitteR_1.1.8
使用命令安装twitteR : devtools::install_github("jrowen/twitteR",ref = "oauth_httr_1_0")
我有一个现有的应用程序不能工作,所以我继续在twitter上创建了一个新的应用程序。
这个组合对我有用。
发布于 2017-01-12 04:27:46
只要检查您的防火墙设置,并允许R通过。
我尝试了所有不同的解决方案,提到的软件包,等等,没有一个工作。最后,我发现这只不过是一个简单的防火墙问题。我建议每个面临这个问题的人先检查他们的防火墙设置。确保将R添加到防火墙允许的应用程序列表中。这应该能解决这个问题。
https://stackoverflow.com/questions/31128492
复制相似问题