devtools::install_github(“JinmiaoChenLab/Rphenograph”)
如果出现以下问题
Downloading GitHub repo JinmiaoChenLab/Rphenograph@master
Error in utils::download.file(url, path, method = method, quiet = quiet, :
cannot open URL ‘https://api.github.com/repos/JinmiaoChenLab/Rphenograph/tarball/master’
解决办法1(官网的下载办法)
if(!require(devtools)){
install.packages(“devtools”) # If not already installed
}
devtools::install_github(“JinmiaoChenLab/Rphenograph”)
解决办法2 直接到github官网下载压缩包,然后在Rstudio里面下载(推荐)
完成
这个方法不会出现因为网络而出错的问题,推荐使用