[R] Page eject and clearing the console

Gabor Grothendieck ggrothendieck at gmail.com
Tue Jan 4 18:05:53 CET 2011

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:


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

More information about the R-help mailing list