curl :: curl_fetch_memory(url,handle = handle)出错:无法连接到R中的服务器:oauth2.0_token())

时间:2016-09-02 06:22:56

标签: r curl

> github_token <- oauth2.0_token(oauth_endpoints("github"), myapp)

Waiting for authentication in browser...
      Press Esc/Ctrl + C to abort
      Authentication complete.
Error in curl::curl_fetch_memory(url, handle = handle) : 
      Couldn't connect to server

我正在尝试从GitAPI获取数据。我需要使用此数据来查找创建存储库的时间。我试过安装&#34; httpuv&#34;但错误是一样的。

PS。我在代理服务器后面。

1 个答案:

答案 0 :(得分:5)

library(httr)    
set_config(use_proxy(url="10.3.100.207",port=8080))

这很好用。感谢您