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

From: Hans-Joerg Bibiko <bibiko_at_eva.mpg.de>
Date: Thu 13 Jul 2006 - 23:54:43 EST

Hi,

many thanks for the hints!

>>
>> 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.
>

OK. That works fine on a Mac running R in X11. But I'm using the nice R Mac GUI.

> 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.

My question is very specific to R Mac GUI, so I will post my tiny question to that developer mailing list.

All the best,

Hans



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 Fri Jul 14 00:00:37 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:15 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.