TwitteR setup_twitter_oauth() failing

前端 未结 11 536
忘掉有多难
忘掉有多难 2020-12-20 11:45

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,

相关标签:
11条回答
  • 2020-12-20 12:41

    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.

    0 讨论(0)
  • 2020-12-20 12:44

    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.

    0 讨论(0)
  • 2020-12-20 12:46

    Just (install and) load the package 'base64enc'.

    0 讨论(0)
  • 2020-12-20 12:46

    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

    0 讨论(0)
  • 2020-12-20 12:46

    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

    0 讨论(0)
提交回复
热议问题