【问题标题】:How to suppress R startup message?如何抑制 R 启动消息?
【发布时间】:2014-05-11 00:31:33
【问题描述】:

在 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行,但是抑制启动信息更优雅?

【问题讨论】:

  • 我通常会为 Rgui 创建一个快捷方式,然后在右键单击/属性时将这个 `-q` 放在 Target 字段的末尾。

标签: r


【解决方案1】:

Invoking R from the command line:

--quiet
--silent
-q

不要打印出最初的版权和欢迎信息。

--slave

让 R 尽可能安静地运行。此选项旨在支持程序 它使用 R 为他们计算结果。它意味着--quiet--no-save

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-12-20
    • 2021-06-29
    • 2018-08-23
    • 2013-10-07
    • 1970-01-01
    • 2014-10-17
    相关资源
    最近更新 更多