0

Is it possible to change the behaviour of R console such that, for instance

  • before each command execution a fortune() is printed, or
  • similar to browser(), the prompt is altered, and some new commands (c,n,Q) are introduced?

I am looking for an alternative to readline() that keeps the history function (key up) intact.

I am using R on winxp with Rgui, but a portable solution would be great.

Karsten W.
  • 17,826
  • 11
  • 69
  • 103

1 Answers1

1

Yes, though it is independent of the GUI as just uses the callback mechanism as for example in the quesion on R: Display a time clock in the R command line.

Community
  • 1
  • 1
Dirk Eddelbuettel
  • 360,940
  • 56
  • 644
  • 725