R.exe,Rcmd.exe,Rscript.exe和Rterm.exe有什么区别? [英] R.exe, Rcmd.exe, Rscript.exe and Rterm.exe: what's the difference?

查看:413
本文介绍了R.exe,Rcmd.exe,Rscript.exe和Rterm.exe有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在努力处理不同的R可执行文件.在批处理文件中运行命令行时,R.exe(带有或不带有CMD BATCH选项),Rcmd.exe,Rscript.exe和Rterm.exe到底有什么区别?

I'm struggling with the different R executables. What exactly is the difference between R.exe (with or without CMD BATCH option), Rcmd.exe, Rscript.exe and Rterm.exe when running command line in a batch file?

和之间有什么区别?

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的任何信息.

I cannot find anything about Rcmd.exe and Rscript.exe in the 3079 pages R reference manual.

顺便说一句:我正在使用Windows.

By the way: I am using Windows.

推荐答案

注意:我在Linux上比Windows做更多:

Caveat: I work much more on Linux than Windows:

  • Rcmd.exe是一天中的历史遗留物,您无法在Windows上执行R CMD something,但需要特殊的可执行文件Rcmd.exe something.情况不再如此,但提供它是为了向后兼容.
  • 从使用Rcmd.exe的日子开始,
  • Rterm.exe也是一个保留时间.这些天可以忽略不计.
  • R CMD BATCH littler Rscript.exe,并且类似地在旧文档和习惯中徘徊..
  • Rscript.exe是您的批处理脚本的朋友;使用它.
  • 对于其他所有内容,都有R.exe.
  • Rcmd.exe is a historical left-over as back in the day, you could not do R CMD something on Windows but needed the special executable Rcmd.exe something. That is no longer the case, yet it is provided for backwards compatibility.
  • Rterm.exe is also a holdover from the days when Rcmd.exe was used. Can be ignored these days.
  • R CMD BATCH is a crutch that was needed in the days before littler and Rscript.exe, and similarly lingering from old docs and habits..
  • Rscript.exe is your friend for batch scripts; use it.
  • For everything else, there's R.exe.

除此之外,正如Marek所暗示的那样,参考手册是六本可用手册中的错误手册.尝试 R简介 Installation and Admin 手册,它们都有针对Windows的特定附录.

Other than that, as Marek hinted, the reference manual is the wrong one among the six available manuals. Try the Introduction to R and the Installation and Admin manuals both of which have specific appendices for Windows.

这篇关于R.exe,Rcmd.exe,Rscript.exe和Rterm.exe有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆