簡體   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