Skip to content
Back to formatted view

Raw Message

Message-ID: <AANLkTimeypVaq-LopeTGapSsOB-WtZSmbVdVsDGnVjh9@mail.gmail.com>
Date: 2011-01-04T17:05:53Z
From: Gabor Grothendieck
Subject: Page eject and clearing the console
In-Reply-To: <4D22ECF5020000CB0007D05D@medicine.umaryland.edu>

On Tue, Jan 4, 2011 at 9:48 AM, John Sorkin <jsorkin at grecc.umaryland.edu> wrote:
> (1) I know that \n when used in cat, e.g. cat("\n") produces a line feed (i.e. skips to the next line). Is there any escape sequence that will go to the top of the next page?
> (2) I know that control L will clear the console. Is there an equivalent function or other means that can be used in R code to clear the console?
>

Its always a good idea to look through the archives before posting.  I
had posted this 5 years ago.  It uses RDCOMClient:

http://www.mail-archive.com/r-help at stat.math.ethz.ch/msg57802.html

and also posted a second version using rcom in the same thread.

-- 
Statistics & Software Consulting
GKX Group, GKX Associates Inc.
tel: 1-877-GKX-GROUP
email: ggrothendieck at gmail.com