如何修改 R 中的启动消息?此消息的代码在哪里?

How can I modify the startup message in R? Where is the code with this message?

我想这将是一个包含启动消息代码的文件。

您可以通过在 .Rprofile.

中添加带有 message() 的行来为 R 设置个人启动消息(它也将显示在 RStudio 中)

在我的例子中,.Rprofile 在 Windows 下的“我的文档”中,并使用免费工具 Notepad++ 进行编辑。

在文件末尾有一行

### KoenV: Illustrate setting R startup message
message("I have changed my message")

启动时出现如下R

您可以在 this post 中阅读有关访问和编辑此文件的更多信息。