Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove R's startup messages in console mode?

Tags:

r

Whenever we start R console with "R" command, we can see messages as follows

R version 3.2.0 (2015-04-16) -- "Full of Ingredients"
Copyright (C) 2015 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin13.4.0 (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.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

I'd appreciate if someone let me know how can we disable it.

like image 998
Kim Avatar asked May 05 '15 13:05

Kim


1 Answers

You need to run whichever executable you're using with the --quiet command line option (--silent or -q will also work). The exact details of how to accomplish that will depend on how you typically launch R.

From the command line of a machine with R on its path, just do:

R --quiet

Or if (for example) you want to set up a clickable icon for the Windows GUI that launches without the "greeting", you can:

  1. Create a shortcut to the Rgui executable (stored in a path like $R_DIRECTORY/bin/i386/Rgui.exe).
  2. Right-click on the shortcut and then select 'Properties'.
  3. On the Shortcut tab, modify the 'Target' field to (the equivalent on your machine of) C:\R\R-current\bin\i386\Rgui.exe --quiet.
  4. Modify the 'Start in' field as desired.
like image 150
Josh O'Brien Avatar answered Oct 20 '22 00:10

Josh O'Brien