[問題] how to use Author in proxy

作者: jklkj (誠實可靠小郎君)   2016-05-17 22:14:58
文章分類提示:
- 問題:
[問題類型]:
程式諮詢(我想用R 做某件事情,但是我不知道要怎麼用R 寫出來)
[軟體熟悉度]:
請把以下不需要的部份刪除
入門(寫過其他程式,只是對語法不熟悉)
[問題敘述]:
I want to use Rgoogleanalytics but when I try to use token
token <- Auth(client.id, client.secret)
R show error like
Error in curl::curl_fetch_memory(url, handle = handle) :
Couldn't resolve proxy name
and I find one answer about this situation
https://github.com/hadley/devtools/issues/877
but I don't know how to use
library(httr)
with_config(use_proxy(...), install_github(...))
^^^^^^^^^^^^^^^^^^^
sorry for my terrible because I can't type Chinese in my leptop
even copy&paste, I can't use PTT in my company
please use Chinese thanks a lot
[程式範例]:
library("RGoogleAnalytics")
client.id <- "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.apps.googleusercontent.com"
client.secret <- "xxxxxxxxxxxxxxxxxxxxxxxx"
token <- Auth(client.id, client.secret)
Waiting for authentication in browser...
Press Esc/Ctrl + C to abort
Authentication complete.
Error in curl::curl_fetch_memory(url, handle = handle) :
Couldn't resolve proxy name
[環境敘述]:
I guess it's just because proxy but I don't know how to slove it.
[關鍵字]:
選擇性,也許未來有用

Links booklink

Contact Us: admin [ a t ] ucptt.com