Continuing the discussion from how do you solve this error:
> devtools::install_github("jalvesaq/colorout", host = "https://api.github.com") Using github PAT from envvar GITHUB_PAT 错误: Failed to install 'unknown package' from GitHub: Timeout was reached: [api.github.com] Resolving timed out after 10000 milliseconds
I had the same issue on windows behind corp proxy.
Resolved by setting the http_proxy and https_proxy environment variables.
Could you please explain what did you do in detail?
On Linux you would just put
export https_proxy=xyz(all lowercase) in yor shell startup file like your
source ~/.bashrcfrom your shell (there is no need for this step to be repeated as it will be automatically sourced on login.
On windows follow this guide Set New User and System Environment Variables in Windows | Tutorials. A GUI makes everything unnecessarily complicated.
Originally posted by @wurosh in Failed to connect to api.github.com · Issue #1915 · r-lib/devtools · GitHub