How to suppress output in RStudio?
Asked Answered
P

2

12

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.

Pathogenesis answered 22/1, 2015 at 19:49 Comment(0)
B
11

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

Same in MAC.

enter image description here

Brittain answered 22/1, 2015 at 19:53 Comment(1)
I don't see this option using RStudio 1.0.136 on a Mac.Gebler
C
3

Ctrl+Shift+S will do the trick. In mac, it will be Shift+Command+S.

Corticosterone answered 5/4, 2017 at 22:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.