How to suppress output in RStudio?

风流意气都作罢 提交于 2019-12-10 12:38:56

问题


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.


回答1:


Use source instead of source with echo in R Studio.

Same in MAC.




回答2:


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



来源:https://stackoverflow.com/questions/28097426/how-to-suppress-output-in-rstudio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!