1
    library(RCurl)
    library(ROAuth)
    consumerKey = "###"
     reqURL = "https://api.twitter.com/oauth/request_token"
    accessURL = "https://api.twitter.com/oauth/access_token"
    authURL =  "https://api.twitter.com/oauth/authorize"
    consumerSecret = "####"
    accessToken = "####"
    accessTokenSecret = "####"
    twitCred <- OAuthFactory$new( consumerKey = consumerKey,
                               consumerSecret = consumerSecret,
                               requestURL = reqURL,
                               accessURL = accessURL,
                               authURL = authURL)
    twitCred$handshake()

这是我尝试将 R 链接到 twitter 的代码。但它抛出了一个错误:

Error in function (type, msg, asError = TRUE)  : 
  Unknown SSL protocol error in connection to api.twitter.com:443

谁能帮我解决这个问题?

4

0 回答 0