Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you clear the R console in OS X (or Ubuntu) [duplicate]

Tags:

Possible Duplicate:
Function to Clear the Console in R

In bash, its like this:

$ clear 

And I believe it's CTL-L in the Windows version of R. But how do you clear the R console in Unix-type R Consoles? Do you need to write a special function and what would that look like?

like image 412
Milktrader Avatar asked Nov 05 '10 00:11

Milktrader


People also ask

How do I clear my R console?

Ctrl+L — Clear the Console. Esc — Interrupt R.

How do you clear the terminal log?

clear() The console. clear() method clears the console if the console allows it. A graphical console, like those running on browsers, will allow it; a console displaying on the terminal, like the one running on Node, will not support it, and will have no effect (and no error).

How do you clear the terminal in Linux?

You can use Ctrl+L keyboard shortcut in Linux to clear the screen. It works in most terminal emulators. If you use Ctrl+L and clear command in GNOME terminal (default in Ubuntu), you'll notice the difference between their impact.


2 Answers

Command+Option+L in R for Mac OS X

Ctrl+L in RStudio for Mac OS X

like image 192
Alex Avatar answered Oct 08 '22 17:10

Alex


Since you ask for Ubuntu as well, it's simply Ctrl-L from a standard gnome-terminal.

like image 33
chrisamiller Avatar answered Oct 08 '22 18:10

chrisamiller