我无法使用R CMD BUILD,因为R \ R-3.4.0 \ bin中没有构建文件

时间:2018-09-26 16:58:09

标签: r cmd build package

我还没有在R版本的二进制文件中构建文件。我应该尝试使其能够使用R CMD BUILD(如何?),还是应该尝试以其他方式构建软件包?

1 个答案:

答案 0 :(得分:1)

INSTALL大写时(为避免与现有的/usr/bin/install冲突,如下图所示,其他情况也是如此),build命令不是:

edd@rob:~$ ls -l /usr/lib/R/bin/
total 488
-rwxr-xr-x 1 root root   1837 Jul  2 19:39 BATCH
-rwxr-xr-x 1 root root    350 Jul  2 19:39 build
-rwxr-xr-x 1 root root    317 Jul  2 19:39 check
-rwxr-xr-x 1 root root   2165 Jul  2 19:39 COMPILE
-rwxr-xr-x 1 root root  11377 Jul  2 19:39 config
drwxr-xr-x 2 root root   4096 Jul 15 20:25 exec
-rwxr-xr-x 1 root root   3618 Jul  2 19:39 f77_f2c
-rwxr-xr-x 1 root root    823 Jul  2 19:39 INSTALL
-rwxr-xr-x 1 root root  14530 Jul  2 19:39 javareconf
-rwxr-xr-x 1 root root 355913 Jul  2 19:39 libtool
-rwxr-xr-x 1 root root   1442 Jul  2 19:39 LINK
-rwxr-xr-x 1 root root   3496 Jul  2 19:39 mkinstalldirs
-rwxr-xr-x 1 root root    483 Jul  2 19:39 pager
-rwxr-xr-x 1 root root   8722 Jul  2 19:39 R
-rwxr-xr-x 1 root root   1375 Jul  2 19:39 Rcmd
-rwxr-xr-x 1 root root    316 Jul  2 19:39 Rd2pdf
-rwxr-xr-x 1 root root    359 Jul  2 19:39 Rdconv
-rwxr-xr-x 1 root root    258 Jul  2 19:39 Rdiff
-rwxr-xr-x 1 root root    158 Jul  2 19:39 REMOVE
-rwxr-xr-x 1 root root    310 Jul  2 19:39 Rprof
-rwxr-xr-x 1 root root  14344 Jul  2 19:39 Rscript
-rwxr-xr-x 1 root root   4121 Jul  2 19:39 rtags
-rwxr-xr-x 1 root root    155 Jul  2 19:39 SHLIB
-rwxr-xr-x 1 root root    318 Jul  2 19:39 Stangle
-rwxr-xr-x 1 root root    316 Jul  2 19:39 Sweave
edd@rob:~$

因此请确保您键入R CMD build ...