skardhamar / rga

R Google Analytics
187 stars 90 forks source link

Cant Authorise RGA #93

Open Aaronmunns88 opened 6 years ago

Aaronmunns88 commented 6 years ago

When I go to authorise the RGA package with my user credentials, it pushes a pop up which once I click my account and details redirects back to local host and wont allow me to actually authorise the tool. I believe this is because im running this tool on a server rather than local, but previouslly it would give me a link to copy into the URL rather than the pop up which seemed to work as wouldnt redirect to local host then? Any ideas on how I could push this behaviour instead? Thanks

EricGoldsmith commented 6 years ago

This behavior is controlled by the underlying httr package. Try setting this option:

options("httr_oob_default" = TRUE)

in your code, which will force the OOB auth method, and provide the functionality you've seen previously.