This may not be an RStudio question per se, but I think it is just a little bit 
So I'm behind a proxy at work, and I seem to be having issues with two things (so far):
- Installing packages from github
devtools::install_github() gives me a
Error: Failed to install 'unknown package' from GitHub:
Failed to connect to api.github.com port 443: Connection refused
- I am also unable to use the git functionality inside RStudio (or the terminal inside RStudio): if I try to push, pull, commit or anything else, I get the near same error
fatal: unable to access 'https://github.com/XXX/XXX.git/': Failed to connect to github.com port 443: Connection refused
BUT, I can use git in the shell. So this is the weird part, why would the proxy only be an issue for RStudio but not the terminal?
My sesh info is here:
sessionInfo()
R version 4.0.4 (2021-02-15)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 10 x64 (build 19041)
Matrix products: default
locale:
[1] LC_COLLATE=Slovenian_Slovenia.1250 LC_CTYPE=Slovenian_Slovenia.1250
[3] LC_MONETARY=Slovenian_Slovenia.1250 LC_NUMERIC=C
[5] LC_TIME=Slovenian_Slovenia.1250
system code page: 1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] devtools_2.3.2 usethis_2.0.1
loaded via a namespace (and not attached):
[1] knitr_1.31 magrittr_2.0.1 pkgload_1.2.0 R6_2.5.0
[5] rlang_0.4.10 fastmap_1.1.0 tools_4.0.4 pkgbuild_1.2.0
[9] xfun_0.21 sessioninfo_1.1.1 cli_2.3.1 withr_2.4.1
[13] htmltools_0.5.1.1 ellipsis_0.3.1 remotes_2.2.0 rprojroot_2.0.2
[17] yaml_2.2.1 digest_0.6.27 assertthat_0.2.1 lifecycle_1.0.0
[21] crayon_1.4.1 processx_3.4.5 purrr_0.3.4 callr_3.5.1
[25] ps_1.6.0 fs_1.5.0 testthat_3.0.2 curl_4.3
[29] memoise_2.0.0 glue_1.4.2 cachem_1.0.4 evaluate_0.14
[33] rmarkdown_2.7 compiler_4.0.4 desc_1.3.0 prettyunits_1.1.1