Function to clear the console in R and RStudio

869    Asked by DelbertRauch in Data Science , Asked on Jul 12, 2021

 I want a function to clear the console in R and RStudio instead of a keyboard function, Can someone tell me any?

Answered by Grace Duncan

You can use the following functions for clearing console in rStudio:

cat("")
cat(" ")

Both of these functions send CTRL + L to the console which is the keyboard shortcut used to clear the console.



Your Answer

Interviews

Parent Categories