Search code examples
rstartupubuntu-20.04

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


I suppose that it will be a file with the code containing the startup message.


Solution

  • You could set a personal startup message for R (which also will show in RStudio) by adding a line with message() in the .Rprofile.

    In my case, the .Rprofile is in "My Documents" under Windows and is edited with the free tool Notepad++.

    At the end of the file I have a line

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

    The following appears when I start R

    enter image description here

    You can read more about accessing and editing this file in this post.