I was following the vignette for the package, updated and loaded all necessary packages, seemed like it would be a pretty straight-forward process to authenticate. Instead,
I encountered the same problems, and after so many attempts.
I found this issue https://github.com/geoffjentry/twitteR/issues/90, where 'jrowen' suggested a work-around that solved my problem. The issue apparently is caused by the new httr
package, but the work-around is to install the twitteR
package from GitHub instead of the cran repository using this command:
devtools::install_github("jrowen/twitteR", ref = "oauth_httr_1_0")
After this, the problem of OAuth authentication error disappeared. Hope this also works for you.
Just check your firewall settings and allow R through.
I tried all the the different solutions mentioned regarding packages , etc. None of them worked. I finally found that it is nothing but a simple firewall issue. I recommend that everybody who faces this issue first check their firewall settings. Make sure that R is added in the list of applications allowed through the firewall. This should solve the issue.
Just (install and) load the package 'base64enc'.
I had to do the following settings to make this work
package versions : base64enc_0.1-3 httr_1.2.1 twitteR_1.1.8
installed twitteR using command: devtools::install_github("jrowen/twitteR", ref = "oauth_httr_1_0")
And i had an existing app which didnt work so i went ahead a created a new app on twitter.
This combination works for me
Adding proxy fix my issue hope this would have some others issue fixed
provided you already have a proxy, then input the following line:
proxy_url <- "http://127.0.0.1:61387/"
Sys.setenv(http_proxy = proxy_url, https_proxy = proxy_url, ftp_proxy = proxy_url)
note:change the settings to your own