How to suppress output in RStudio?

makansij picture makansij · Jan 22, 2015 · Viewed 11.8k times · Source

I need to suppress my output when I run my R scripts in RStudio. There are a lot of comments in my scripts, and the comments are printed when I run the file.

I realize that others have asked how to do this from the command prompt - How to suppress output. I'm not interested in that.

I just want to know how to suppress the output in RStudio. The only exception to this should be print statements. Thanks in advance.

Answer

Atilla Ozgur picture Atilla Ozgur · Jan 22, 2015

Use source instead of source with echo in R Studio. Source in RStudio

Same in MAC.

enter image description here