This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Package install from github - Failed to connect to api.github.com port 443

I'm using devtools install monocle3 from github, but it didn't work

devtools::install_github('cole-trapnell-lab/monocle3')
Using github PAT from envvar GITHUB_TOKEN
错误: Failed to install 'monocle3' from GitHub:
  Failed to connect to api.github.com port 443: 没有到主机的路由

do you guys know how to fix this problem?

r

1 answer

Installation is virtually guarranteed via Anaconda/miniconda:

If it is R-devtools then either one of the following

conda install -c conda-forge r-devtools
conda install -c conda-forge/label/gcc7 r-devtools
conda install -c conda-forge/label/cf201901 r-devtools
conda install -c conda-forge/label/cf202003 r-devtools

Last upload: 2 months and 25 days ago

For Monocle 3,

conda install -c bioconda r-monocle3

Alternatively downgrade to use R 3.5.1, then

install.packages(“devtools”)

devtools::install_github(‘cole-trapnell-lab/monocle3’)

A number of issues were raised about installation on OSX but they were not anything like the error code encountered here, one issue appeared specific to 10.13

Finally the following post used a comparable strategy download from GitHub but the error codes appears to differ

Their solution was,

In Terminal:
sudo apt-get install gdal-bin proj-bin libgdal-dev libproj-dev
In R:
install.packages("rgdal", repos="http://R-Forge.R-project.org")
In R:
devtools::install_github('cole-trapnell-lab/monocle3')

The easiest is an Anaconda installation

Thank you for your reply! I don't think the point is on monocle3 because when I use devtools to install other package from github it also reports the same error. My browser can connect to GitHub, but I cannot install R packages from it.This problem has been bothering me for a long time,because I can't install the corresponding package for the next analysis.

Log in to answer this question.