Reputation: 1484
I want to use google api, but in some country like China we are not free to connect google, especially in R using API so we need a way to do that
after several hours try, I finally could make it. In order to help others go through the hardest part
I will post my answer below
Upvotes: 2
Views: 2923
Reputation: 1484
proxy_url <- "http://127.0.0.1:61387/"
Sys.setenv(http_proxy = proxy_url, https_proxy = proxy_url, ftp_proxy = proxy_url)
you only need to record your proxy url and tell R by setting and you are all set, I believe it works for all people have restriction on their internet
cheers~~
Upvotes: 2