Relevant Post 1
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
Relevant Post 2
Relevant Post 3
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 http_proxy=xyz
andexport https_proxy=xyz
(all lowercase) in yor shell startup file like your.bashrc
and thensource ~/.bashrc
from 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 https://www.tenforums.com/tutorials/121664-set-new-user-system-environment-variables-windows.html#option1. A GUI makes everything unnecessarily complicated.
_Originally posted by @wurosh in Failed to connect to api.github.com · Issue #1915 · r-lib/devtools · GitHub