简体   繁体   中英

Hook into Rgui console?

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.

是的,尽管它独立于GUI,因为它仅使用回调机制,例如在R的问题中:在R命令行中显示时间时钟

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM