Back
Welcome to Intellipaat Community. Get your technical queries answered by top developers!
You can use the following functions to clear the console in RStudio:
cat("\f")
cat("\014")
Both of these functions send CTRL + L to the console which is the keyboard shortcut used to clear the console.
You may define the following function
clc <- function() cat(rep("\n", 50))
which you can then call as clc().
30.9k questions
32.9k answers
500 comments
665 users