I am wondering if there is a function to clear the console in R, and RStudio in particular. I am looking for a function that I can type into the console, and not a keyboard shortcut.
Someone has already provided such a function in this StackExchange post from 2010. Unfortunately, this depends on the RCom package and will not run on Mac OS X.
I know this is an old question - but as it comes up high in the list of hits on Google when I Googled the same thing it made sense to add an answer...
is the code to send ctrl+L to the console and therefore will clear the screen.
Far better than just sending a whole lot of returns!