Re: [R] VERY TINY question: missing function to clear the console?

From: Jan T. Kim <jtk_at_cmp.uea.ac.uk>
Date: Thu 13 Jul 2006 - 21:15:55 EST

On Thu, Jul 13, 2006 at 12:47:09PM +0200, Hans-Joerg Bibiko wrote:
>
> Hi,
>
> for presentation purposes I would like to clear to whole console
> window (like in a UNIX terminal: 'clear').
>
> Is there such a function?
>
> If not, I could image that is not too hard to write such a function.

At the risk of this being a stupid answer: An easy way would be

    system("clear");

This should work under unixes that provide the "clear" command, don't know about windows.

If there is no "clear screen" function in R (I haven't seriously looked for one), I think one of the reasons for that might be that writing that in a multi-platform portable way is actually a somewhat more laborious thing to do than it seems.

Best regards, Jan

-- 
 +- Jan T. Kim -------------------------------------------------------+
 |             email: jtk@cmp.uea.ac.uk                               |
 |             WWW:   http://www.cmp.uea.ac.uk/people/jtk             |
 *-----=<  hierarchical systems are for files, not for humans  >=-----*

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu Jul 13 21:32:17 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Fri 14 Jul 2006 - 00:15:06 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.