Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

OAuth access for R

Tags:

r

oauth

I'm trying to use R to grab some web data that requires OAuth authentication. Searching on CRAN and RSeek.org for info on OAuth + R provides nothing. Any tips for accessing RESTful APIs with R using OAuth?

I'm considering using some Python/Perl/Ruby to grab the data, save it to a text file, then work on it with R. I'd prefer to stay totally in R, but it seems like OAuth is a barrier.

like image 327
JD Long Avatar asked Aug 02 '10 20:08

JD Long


3 Answers

Turns out Jeff Gentry from TwitteR wrote his own OAuth R library.

http://cran.r-project.org/web/packages/ROAuth/index.html

like image 66
Eduardo Avatar answered Sep 20 '22 13:09

Eduardo


Best approach now appears to be to use httr (https://github.com/r-lib/httr)

like image 27
matt_jay Avatar answered Sep 22 '22 13:09

matt_jay


One option I stumbled on is called OAuth Proxy and it slips the OAuth headers in using a proxy. This is an interesting kludge.

like image 27
JD Long Avatar answered Sep 21 '22 13:09

JD Long