R 从 github 安装我自己的上传包,出现 Timeout:curl_fetch_disk 错误

R install my own upload package from github with Timeout:curl_fetch_disk Error

我可以通过install()把这个包安装到本地文件夹我最后提供代码

然而,当我上传软件包并尝试从 github 安装时,使用:

devtools::install_github('yuanqingye/FlighR')

我收到这条消息

Error in curl::curl_fetch_disk(url, x$path, handle = handle) : 
Timeout was reached: Connection timed out after 10686 milliseconds

仅供参考,我可以从 github 安装其他包(之前没有错误)

这是我从本地消息中安装成功的:

install() 
Installing FlightR 
"D:/R/R-33~1.3/bin/x64/R" --no-site-file
"D:/R/R-33~1.3/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL  \
"C:/Users/qingye.yuan/Documents/R_Projects/interestingR/FlightR" --library="D:/R/R-3.3.3/library"  \
--install-tests 

* installing *source* package 'FlightR' ...
** R
** preparing package for lazy loading
** help
No man pages found in package  'FlightR' 
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (FlightR)

我认为您的 devtools 命令中有错字。这有效:

> devtools::install_github("yuanqingye/FlightR")
Downloading GitHub repo yuanqingye/FlightR@master
✔  checking for file ‘/tmp/RtmplBMbiz/remotes2c88780eef71/yuanqingye-FlightR-135a628/DESCRIPTION’ ...
─  preparing ‘FlightR’:
✔  checking DESCRIPTION meta-information ...

─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
─  building ‘FlightR_1.0.tar.gz’
Installing package into ‘/home/johannes/R/x86_64-pc-linux-gnu-library/3.5’
(as ‘lib’ is unspecified)
* installing *source* package ‘FlightR’ ...
** R
** byte-compile and prepare package for lazy loading
** help
No man pages found in package  ‘FlightR’ 
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (FlightR)