5

Can I prevent R from echoing the source code in the console in RStudio?

I have tried options(echo=F) and options(verbose=F)

nrussell
  • 18,382
  • 4
  • 47
  • 60
Charles Stangor
  • 292
  • 7
  • 21

3 Answers3

5

Looks like pressing Ctrl+Shift+S which sources the current document without echo might fit your case.

TerenceLam
  • 143
  • 2
  • 8
1

In R Studio, you can run the current script with the below code (check out ?source for more information on other arguments that might be helpful for other reasons)

source('~/.active-rstudio-document', print.eval = TRUE)
greengrass62
  • 968
  • 7
  • 19
1

I realise this is an old question but thought this could be helpful.

You can toggle the RStudio echo on/off using the "Source" button options (top right of source code window). As previously mention Ctrl+Shift+S - source without echo or Ctrl+Shift+Enter - source with echo.

SecretAgentMan
  • 2,856
  • 7
  • 21
  • 41
BennyBoy
  • 11
  • 1