利用R工具从Twitter中挖掘信息
在使用Twitter API进行握手时, 我遇到了如下错误:利用R工具从Twitter中挖掘信息,r,twitter,oauth,R,Twitter,Oauth,在使用Twitter API进行握手时, 我遇到了如下错误: twitCred <- OAuthFactory$new(consumerKey=consumerKey, + + consumerSecret=consumerSecret, + requestURL=requestURL, +
twitCred <- OAuthFactory$new(consumerKey=consumerKey,
+
+ consumerSecret=consumerSecret,
+ requestURL=requestURL,
+ accessURL=accessURL,
+ authURL=authURL)
>
> twitCred$handshake(cainfo="cacert.pem")
To enable the connection, please direct your web browser to:
https:/api.twitter.com/oauth/authorize?oauth_token=lio2StTSAjSHH8jie1TgpdtgeLKuS9TS
When complete, record the PIN given to you and provide it here: 2960112
setup_twitter_oauth(consumerKey,consumerSecret,accessToken,accessScret)
[1] "Using direct authentication"
Use a local file to cache OAuth access credentials between R sessions?
1: Yes
2: No
Selection: 1
Adding .httr-oauth to .gitignore
Error in file(con, "w") : cannot open the connection
In addition: Warning message:
In file(con, "w") : cannot open file '.gitignore': Permission denied.
谢谢。尝试使用setwdnew\u目录更改您的R工作目录,看起来您正在尝试在受保护的目录中写入。谢谢您,先生。。。找到了解决方案,现在又收到了推文。。非常非常感谢,先生@美好的
Error in file(con, "w") : cannot open the connection
In addition: Warning message:
In file(con, "w") : cannot open file '.gitignore': Permission denied.