I am trying to connect to google analytic s API through a script running on R studio server.
I have followed steps from this tutorial:
http://www.r-bloggers.com/how-to-extract-google-analytics-data-in-r-using-rgoogleanalytics/
If I run this on localhost, it works alright but when I try to run the script on a remote server through R studio,
authroization step does not complete because it tries to connect to the url on localhost i.e
localhost:1410/
instead of REMOTESERVERHOSTNAME:1410
I found this post which suggests port forwarding if running through R studio : link
but if tomorrow, if I want to access it on the other host computer, I would not want to set port forwarding first.
How to run this script without having to set port forwarding?What are other ways for oauth authentication for my R script?