Clearing the Console

We Clear console in R and RStudio, In some cases when you run the codes using “source” and “source with echo” your console will become messy. And it is needed to clear the console. So let’s now look at how to clear the console. The console can be cleared using the shortcut key “ctrl + L“. 

Example:

In this below screenshot, an R code is written in the script tab defined a and calculated b and printed a, b. When this code is executed using “source with echo” all the commands will get printed in the console tab. Now, to clear this console click on the console tab and enter the key combination “ctrl + L“. Once it is done the console will get cleared.

Note: Remember that clearing the console will not delete the variables that are there in the workspace. You can see that in the environment tab even though we have cleared the console in the workspace we still have the variables that are created earlier.

Clear the Console and the Environment in R Studio

R Studio is an integrated development environment(IDE) for R. IDE is a GUI, where you can write your quotes, see the results and also see the variables that are generated during the course of programming.

Similar Reads

Clearing the Console

We Clear console in R and RStudio, In some cases when you run the codes using “source” and “source with echo” your console will become messy. And it is needed to clear the console. So let’s now look at how to clear the console. The console can be cleared using the shortcut key “ctrl + L“....

Clearing the Environment

Variables on the R environment can be cleared in two ways:...

Contact Us