在 Windows 7 上运行
rterm < foo.r > temp.txt
输出文件开头为:
R version 3.0.1 (2013-05-16) -- "Good Sport"
Copyright (C) 2013 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
以及进一步的文字。
如何隐藏此消息?我在 Rprofile.site 文件中没有看到执行此操作的选项。当然我可以使用另一个程序删除输出文件的前N行,但是抑制启动消息更优雅?
--quiet --silent -q
不要打印最初的版权和欢迎信息。
--no-echo
让R尽可能安静地运行。该选项旨在支持程序 它们使用 R 来计算结果。它意味着
和--quiet
。--no-save