-
Notifications
You must be signed in to change notification settings - Fork 164
Error in check_twitter_oauth( ) #90
Comments
Is that work around to be carried out during the install of twitteR or when executing any commands from the package? Also does it work if you install twitteR from cran? |
@mobcdi The work around should be introduced if and only if you're looking to work with the
After this initial workflow, any time you launch R, you would just call |
I think you need to change the order you load the packages as twitteR depends on httr so will error if you try to load it before installing the version from archives When I run (on 64bit windows using RStudio) Any recommendations on how to solve it |
I already had As for the error you're getting, I would try to install a working version of |
installing the most recent version on cran worked, followed by restarting the session, then loading the twitter library and running through setup_twitter_oauth with valid keys and secrets. Thanks for the help, |
hi, i've been trying to run the command, and here are the following output : devtools::install_version("httr", version="0.6.0", repos="http://cran.us.r-project.org")
i've been :
my current running version of R is 3.2.0 |
@meewmiiuuw This issue is probably more suited for @hadley as it deals specifically with |
I installed the httr version 0.6.0, i am still getting the same error - My Session Info - R version 3.2.1 (2015-06-18) locale: attached base packages: other attached packages: loaded via a namespace (and not attached): |
I can't replicate your issue, so I don't know what's going on. Only thing I can think of is there are some typos in your keys and/or secrets. |
You may try looking through #74 as there seem to be some people there who can't get it to work either. May be a firewall issue or something with your system time. |
Is the problem specifically with the httr_1.0.0 package ? Because I installed twitteR_1.1.8 with httr_1.0.0 on two machines yesterday and same problem occured. Earlier with older version everything worked fine. |
Yes, it's a compatibility issue between twitteR and the most recent version of httr. |
Thanks for the information. |
With
|
Could the same auth problem affect the streaming api package streamR? |
I may be wrong, but I believe the issue with the |
If you're interested, you can test out my suggestion here:
|
I still get |
@neuwirthe Try restarting R and running the code again. |
I was doing it in RStudio and terminated the session.
|
@theRanalyst Thank you very much, I had struggled with the problem in Authentication with httr package. The solution was to install httr older version (0.6.0): devtools::install_version("httr", version="0.6.0", repos="http://cran.us.r-project.org") |
Downloading package from url: http://cran.us.r-project.org/src/contrib/Archive/httr/httr_0.6.0.tar.gz --how should I install the older version of httr? |
@msstefb I would recommend installing from the command line, you should be working on R from terminal or GUI and run next code. Worked for me. Thanks to @jrowen
|
@alfredo203 @msstefb Neither one of you should be using an old version of |
Did you shut down R completely and restart it?
|
Hi all - I just got 1.1.9 released which includes this change (and a few others in order to pass modern R CMD Check), try it off of CRAN and see what happens. |
I had all the errors discussed in this thread and after trying the method explained last by @theRanalyst, using the setup_twitter_oauth() function worked first time. Thanks for your help @theRanalyst and for the great work @geoffjentry |
installing the below package did the trick for me |
What worked for me (after trying alot of alternatives) httr v0.6.0 and twitteR 1.1.8 (@geoffjentry twitteR 1.1.9 does not seem to work with httr 0.6.0, at least on my version of R 3.2.2 x64 Windows) |
@BobHarper1 You shouldn't be using httr 0.6.0 anymore. The latest release of |
In fact the latest version requires the newer httr |
Yes, but for whatever reason twitteR 1.1.9 results in the |
Run |
If you're installing twitteR with install.packages you shouldn't need to do that. It's a dependency of httr |
Installing |
Hello everybody, |
@pssguy thanks a lot, I'll try it. I confess that I discovered twitteR package last summer in a training and I was not aware of this "replacement". |
@pssguy Thanks for that, had not heard of rtweet will check it out of the library. |
@chapelon most likely it is because hadley is still developing |
Does anyone have a way of reliably avoiding this trap? I'm trying to get a fix set up for some students attempting to use https://github.com/vosonlab/SocialMediaLab, which still depends on twitteR. I've blasted my local R install and have tried building from 3.2.4-revised and 3.3.3, and in both cases I still hit this issue no matter what set of instructions I follow for getting these dependencies installed. |
When I played around some months ago,
I started using rtweet instead of twitteR.
It seemed to have an easier to use interface.
But I still think twitteR is a great packages.
… On 15 Mar 2017, at 23:44, Devin Gaffney ***@***.*** ***@***.***>> wrote:
Does anyone have a way of reliably avoiding this trap? I'm trying to get a fix set up for some students attempting to use https://github.com/vosonlab/SocialMediaLab <https://github.com/vosonlab/SocialMediaLab>, which still depends on twitteR. I've blasted my local R install and have tried building from 3.2.4-revised and 3.3.3, and in both cases I still hit this issue no matter what set of instructions I follow for getting these dependencies installed.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#90 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAJnswjv14CgoGRhVD-Sgco_zgK9yeMzks5rmGmzgaJpZM4FNYGh>.
<https://cloud.githubusercontent.com/assets/143418/17495839/a5054eac-5d88-11e6-95fc-7290892c7bb5.png> <https://cloud.githubusercontent.com/assets/143418/15842166/7c72db34-2c0b-11e6-9aed-b52498112777.png> <https://github.com/geoffjentry/twitteR> <https://github.com/vosonlab/SocialMediaLab> <#90 (comment)>
|
I recommend people to switch to rtweet, a while back he & I worked out a plan that twitteR is officially deprecated and I point people his way. There's a chicken and egg problem in that I can't update the package to day that and get it on cran as I don't have time to update all the other things they'll want me to change |
Is there a way by which I could copy your repo and install via github in devtools? This is really just looking for a solution that can be as hacky and temporary as my use case is excessively fleeting.
Devin
… On Mar 15, 2017, at 8:46 PM, Jeff Gentry ***@***.***> wrote:
I recommend people to switch to rtweet, a while back he & I worked out a plan that twitteR is officially deprecated and I point people his way.
There's a chicken and egg problem in that I can't update the package to day that and get it on cran as I don't have time to update all the other things they'll want me to change
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@DGaffney not sure what you're asking to do. you mean you want to make some mods? you could fork and then point the devtools install to your own repo. |
Correct - what exactly are the fixes I’d need to actually put into that temporary repo? I can’t seem to come up with a reliable set of install commands to get twitteR working right now on my end as it stands.
… On Mar 16, 2017, at 9:04 AM, Jeff Gentry ***@***.***> wrote:
@DGaffney <https://github.com/DGaffney> not sure what you're asking to do. you mean you want to make some mods? you could fork and then point the devtools install to your own repo.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#90 (comment)>, or mute the thread <https://github.com/notifications/unsubscribe-auth/AAA3pAnQ-a9XELlMHIsGuTf5UStJwOtQks5rmTNugaJpZM4FNYGh>.
|
@DGaffney Honestly I have no idea. Over the years I was very rarely able to reproduce issues like this, they typically amounted to mismatched dependency versions and things like that. Considering |
Hi
I am getting this error "Using direct authentication" If i only try I am getting this error. "Using browser based authentication" How do i go about it. I am using R 3.4.0. Regards, |
hello everyone setup_twitter_oauth(consumerKey, |
@richaagrawa This package is deprecated, and you should be using rtweet instead. |
I tried using rtweet but that too didn't worked. |
I know this issue has come up before when Hadley has made changes to his httr package, but I wanted to bring it to your attention again as he just pushed version 1.0.0.9000 and it seems to be causing the same issue. The following works as a workaround in the meantime.
Just be sure to restart R after running the command.
The text was updated successfully, but these errors were encountered: