这里完全是新手,所以这里可能有一些非常糟糕的东西。我按照Hadley关于R软件包的书创建了一个项目,现在我尝试将它添加到github进行远程安装(供参考的储存库)。
运行devtools::install_github("alutterb/abcmlr")会产生以下输出:
Downloading GitHub repo alutterb/abcmlr@master
√ checking for file 'C:\Users\amlut\AppData\Local\Temp\RtmpMpn5uJ\remotes7146c405dd7\alutterb-abcmlr-918bf05/DESCRIPTION' ...
- preparing 'abcmlr':
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'abcmlr_0.1.0.tar.gz'
Installing package into ‘C:/Users/amlut/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
* installing *binary* package 'abcmlr' ...
cp: unknown option -- )
Try '/Rtools/bin/cp --help' for more information.
ERROR: installing binary package failed
* removing 'C:/Users/amlut/Documents/R/win-library/3.5/abcmlr'
In R CMD INSTALL
Error in i.p(...) :
(converted from warning) installation of package ‘C:/Users/amlut/AppData/Local/Temp/RtmpMpn5uJ/file71463953e7b/abcmlr_0.1.0.tar.gz’ had non-zero exit status在我的存储库中,我有一个与wsl一起使用的Linux可执行文件以及一个在我的R代码中调用的.exe文件。这些可能是罪魁祸首,但我不完全确定。错误声明它未能安装二进制包,但是install_github()接受一个源包,所以我不确定发生了什么。任何帮助都是非常感谢的。
谢谢。
编辑:这个问题已经解决了。这是因为我的DESCRIPTION文件中有一行与Built有关。
发布于 2019-07-10 05:03:14
https://stackoverflow.com/questions/56958676
复制相似问题