Reputation: 304
Can I prevent R from echoing the source code in the console in RStudio?
I have tried options(echo=F) and options(verbose=F)
Upvotes: 5
Views: 8916
Reputation: 11
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.
Upvotes: 1
Reputation: 173
Looks like pressing Ctrl+Shift+S
which sources the current document without echo might fit your case.
Upvotes: 6
Reputation: 986
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)
Upvotes: 1