devtools::install_github()
函数进行下载是老是出现无法打开链接问题,换了各个镜像链接却依然出现这样的问题,不知是什么原因引起的?请各位前辈指点江山!谢谢您!
> devtools::install_github('rstudio/blogdown')
Downloading GitHub repo rstudio/blogdown@master
Error in utils::download.file(url, path, method = download_method(), quiet = quiet, :
cannot open URL 'https://api.github.com/repos/rstudio/blogdown/tarball/master'
> devtools::install_github("scottmmjackson/h3r")
> #或者 devtools::install_github("harryprince/h3r", ref="bug-fix/Makefile")
Downloading GitHub repo scottmmjackson/h3r@master
Error in utils::download.file(url, path, method = download_method(), quiet = quiet, :
cannot open URL 'https://api.github.com/repos/scottmmjackson/h3r/tarball/master'
本机运行环境信息如下:
> sessionInfo()
R version 3.5.3 (2019-03-11)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1
Matrix products: default
locale:
[1] LC_COLLATE=Chinese (Simplified)_People's Republic of China.936
[2] LC_CTYPE=Chinese (Simplified)_People's Republic of China.936
[3] LC_MONETARY=Chinese (Simplified)_People's Republic of China.936
[4] LC_NUMERIC=C
[5] LC_TIME=Chinese (Simplified)_People's Republic of China.936
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] usethis_1.4.0 devtools_2.0.1 maps_3.3.0 dggridR_2.0.3
[5] ggplot2_3.1.0 rgdal_1.4-3 dplyr_0.8.0.1 fun_0.2
[9] openair_2.6-1 animation_2.6 beginr_0.1.6 maptools_0.9-5
[13] sp_1.3-1