【问题标题】:How to enable https support in twitteR?如何在 twitteR 中启用 https 支持?
【发布时间】: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

【问题讨论】:

    标签: twitter https rcurl


    【解决方案1】:

    requestURL 和后续的 URL 用单引号指定。当用双引号替换单引号并删除空格时,该函数在 Windows 上运行。

    【讨论】:

      猜你喜欢
      • 2013-10-01
      • 1970-01-01
      • 2015-04-16
      • 1970-01-01
      • 2012-10-20
      • 2011-01-13
      • 2012-12-04
      • 2012-05-15
      • 1970-01-01
      相关资源
      最近更新 更多