[英]Hook into Rgui console?
Is it possible to change the behaviour of R console such that, for instance 是否可以更改R控制台的行为,例如
fortune()
is printed, or fortune()
,或者 browser()
, the prompt is altered, and some new commands (c,n,Q) are introduced? browser()
,提示更改了,并引入了一些新命令(c,n,Q)? I am looking for an alternative to readline()
that keeps the history function (key up) intact. 我正在寻找
readline()
的替代方法,以保持历史记录功能(键向上)完整。
I am using R on winxp with Rgui, but a portable solution would be great. 我正在Rgui的winxp上使用R,但是可移植的解决方案会很棒。
是的,尽管它独立于GUI,因为它仅使用回调机制,例如在R的问题中:在R命令行中显示时间时钟 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.