How to Clear the Console in R

We can clear the Console in R using Ctrl+l. We can use cat() function to that. We can also clear console in R using graphical method from RStudio or Rgui.

1. Use Ctrl+L to clear the console.

2. Use cat(“\014”) or cat(“f”) to clear the console.

3. Create following custom function and run it.

clear < - function() cat(rep("\n",50)) clear() 4. Using Graphical Method: RStudio(or Rgui)--> Edit–Select “Clear Console”. It will clear the contents of R console.

How to Clear the Console in R

Related Posts

Responses are currently closed, but you can trackback from your own site.

Comments are closed.

Powered by k2schools