我很难在Stack Overflow上找到有关R上的twitteR软件包的问题。为了使这更简单,我会告诉你我输入的内容:
reqURL<-"https://api.twitter.com/oauth/request_token"
accessURL<-"http://api.twitter.com/oauth/access_token"
authURL<-"http://api.twitter.com/oauth/authorize"
cKey="{my consumer key}"
cSecret="{my consumer secret}"
oKey="{my oauth key}"
oSecret="{my oauth secret}"
credentials<-OAuthFactory$new(consumerKey=cKey,consumerSecret=cSecret,oauthKey=oKey,oauthSecret=oSecret, requestURL=reqURL,authURL=authURL)
credentials$handshake(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")
然后控制台响应
To enable the connection, please direct your web browser to:
http://api.twitter.com/oauth /authorize?oauth_token=aMog9rDmJTphmNv0wnkN2ELtVDl20npVq7Vzv4L0IA
When complete, record the PIN given to you and provide it here: {PIN entered here}
libidn: warning: libiconv not installed, cannot convert data to UTF-8
libidn: warning: libiconv not installed, cannot convert data to UTF-8
libidn: warning: libiconv not installed, cannot convert data to UTF-8
libidn: warning: libiconv not installed, cannot convert data to UTF-8
Error in function (type, msg, asError = TRUE) : Could not resolve host: xn--tmb; No data record of requested type
查看以“libidn”开头的警告我想知道该软件包或我自己的计算机是否存在潜在问题,因为我只能在论坛上找到对该错误的响应,超出我的技术范围。我在Windows Vista 32位上运行,我有R-2.14.1。