Package install from github - Failed to connect to api.github.com port 443
1
0
Entering edit mode
2.2 years ago
qzLi0031 • 0

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.2k views
ADD COMMENT
0
Entering edit mode

See relevant SO post, need to fix proxy:

Alternatives:

  • Use remotes package instead, it is lightweight compared to devtools: remotes::install_github("cole-trapnell-lab/monocle3")
ADD REPLY
0
Entering edit mode
2.2 years ago
M__ ▴ 200

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

ADD COMMENT
0
Entering edit mode

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.

ADD REPLY

Login before adding your answer.

Traffic: 3155 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6