繁体   English   中英

如何在twitteR中启用https支持?

[英]How to enable https support in twitteR?

我正在尝试使用R.中的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

requestURL及其后的URL用单引号指定。 当单引号替换为双引号并删除空格时,该功能在Windows上可以使用。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM