【发布时间】:2015-01-25 17:54:33
【问题描述】:
我正在尝试使用 R. Script 中的 twitteR 包连接到 twitter,结果如下。在 Windows 8.1 上运行 R 3.1.2 64 位。有关如何启用 https 的任何建议?我没有在 R-help 或任何其他可搜索的来源上找到解决方案。
require(twitteR)
Loading required package: twitteR
Loading required package: ROAuth
Loading required package: RCurl
Loading required package: bitops
Loading required package: rjson
> cred <- OAuthFactory $ new( consumerKey = my.key, consumerSecret = my.secret, requestURL =' https:// api.twitter.com/ oauth/ request_token', accessURL =' https:// api.twitter.com/ oauth/ access_token', authURL =' https:// api.twitter.com/ oauth/ authorize')
> cred$handshake(cainfo = "C:/users/john/documents/twitter/cacert.pem")
Error in function (type, msg, asError = TRUE) :
Protocol " https" not supported or disabled in libcurl
【问题讨论】: