从tar.gz在windows中安装和构建R包

时间:2016-06-20 18:29:58

标签: r linux windows

我在Linux中构建了一个R包,它编译得很完美,并生成一个tar.gz文件,可以安装和执行。

现在我正在尝试按照本页的说明使用RTools(最新版本)构建我的库的Windows版本:

https://www.biostat.wisc.edu/~kbroman/Rintro/Rwinpack.html

执行以下命令时:

R CMD INSTALL --build --compile-both mypackage.tar.gz

我收到了错误:

Warning in untar2(tarfile, files, list, exdir, restore_times) :
  failed to copy 'rbdd/libs/libbuddy.so.0.0.0' to 'rbdd/libs/libbuddy.so'
Warning in untar2(tarfile, files, list, exdir, restore_times) :
  restoring symbolic link as a file copy
* installing to library 'C:/Users/Sergio/Documents/R/win-library/3.3'
* installing *binary* package 'mypackage' ...
cp: unknown option -- )
Try '/usr/bin/cp --help' for more information.
Warning: executed command 'cp -R . "C:/Users/Sergio/Documents/R/win-library/3.3/mypackage" || ( tar cd - .| (cd "C:/Users/Sergio/Documents/R/win-library/3.3/mypackage" && tar -xf -))' has status 1
ERROR: installing binary package failed
* removing 'C:/Users/Sergio/Documents/R/win-library/3.3/mypackage'

我已按如下方式配置了Path变量:

PATH:C:\Rtools\bin;C:\Rtools\mingw_32\bin;C:\Program Files\R\R-3.3.0\bin\x64\;...;C:\Windows\system32;...

可能是什么问题?

0 个答案:

没有答案