[问题] 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