我在处理不同的R可执行文件时遇到了问题。当在批处理文件中运行命令行时,R.exe(带或不带CMD BATCH选项)、Rcmd.exe、Rscript.exe和Rterm.exe之间有什么区别?
还有这两者之间的区别:
R.exe --no-environ --no-save < "c:\temp\R\test.R" > "c:\temp\R\out.txt" 2>&1
和
R.exe CMD BATCH --no-environ --no-save "c:\temp\R\test.R" "c:\temp\R\out.txt"
输出结果没有任何区别。
在3079页的R参考手册中,我找不到有关Rcmd.exe和Rscript.exe的内容。
顺便说一下:我正在使用Windows操作系统。