When I try to install a package using remotes::install_github it does not work if I run the command from RStudio Server, but it works when I run it using a regular R connection through the linux terminal on the same server and project folder (packrat enabled).
The error seems to be related to a connectivity issue.
is the url accessible from Rstudio ? without using install_github ?
You could try something like
res <- httr::GET("https://api.github.com/repos/traversc/qs/zipball/master")
httr::status_code(res)
There may be some configuration not present in RStudio but active in terminal. Is the account exactly the same ? Do you have some configuration in bash profile ?
Yes, devtools::install_github works but remotes:: not. I can switch from remotes to devtoools, but still I have the same -or related- connection error with Bioconductor:
> BiocManager::install("CoverageView")
Error: Bioconductor version cannot be validated; no internet connection?
That command works, maybe it is something that fails exclusively with remotes or Bioconductor. Perhaps an SSH certificate that doesn't work for them but it does for devtools/download.file. I think I can move forward given that is not all the time I am installing packages, and at any case I can use the R console also.