Which function can I use to clear the console in R and RStudio

676    Asked by yashJaiteley in Python , Asked on Jul 10, 2021

Don’t know how to clear console r studio? 

Answered by Simran Agarwal

The shortest and the quickest way to clear the global environment in R is by using shortcut keys from the keyboards. Simply hit Ctrl+L on the keyboard and you will see that everything written in the console will be erased and the console will be cleared.


Description Windows & Linux Mac

Clear console Ctrl+L Ctrl+L

cat(" ") is the code to send CTRL+L to the console and therefore will clear the screen.

You can also type cat(" ")



Your Answer

Interviews

Parent Categories