Hans-Joerg Bibiko
2006-Jul-13 10:47 UTC
[R] VERY TINY question: missing function to clear the console?
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. Cheers, Hans
Hans-Joerg Bibiko
2006-Jul-13 11:13 UTC
[R] VERY TINY question: missing function to clear the console?
Sorry, I forgot to mention that I'm using R 2.3.1 on Mac OSX 10.4.7 via R.app GUI. On 13 Jul 2006, at 12:53, Joris De Wolf wrote:> ctrl+l > >Thanks, but unfortunately this doesn't work on my Mac. Hans> > 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. > > Cheers, > > Hans >
Jan T. Kim
2006-Jul-13 11:15 UTC
[R] VERY TINY question: missing function to clear the console?
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 at cmp.uea.ac.uk | | WWW: http://www.cmp.uea.ac.uk/people/jtk | *-----=< hierarchical systems are for files, not for humans >=-----*