[rkward-devel] limiting onscreen graphics history
Prasenjit Kapat
kapatp at gmail.com
Mon Jul 5 18:31:28 UTC 2010
On Mon, Jul 5, 2010 at 1:03 PM, Thomas Friedrichsmeier
<thomas.friedrichsmeier at ruhr-uni-bochum.de> wrote:
>
> How about this (could cover the case of reduced 's', too, if you think it's
> important enough): When the limit is decreased:
> 0) Accept the setting, i.e. reduce the limit.
> 1) Check whether the history will need to be reduced. If so:
> 2) Notify the user that the history will be trimmed. This *could* include the
> question, whether to trim the history at once, or to delay that until the next
> plot is added. In either case the notification will come from R, and be all R
> code (i.e. do not make the C++ more complex).
>
> 2 can be done today using readline(). I always intented to add something like
> rk.ask.yesnocancel (question="Go for it?", label.yes=NA, label.no=NA,
> label.cancel=NA) to have a simple generic way to display a messagebox from R
> code. This will be relatively easy to do, so you can assume it will be done
> before the release (and nag me about it, if necessary).
This feels like a much better way to implement things. I'll do it with
readline () and then change it to rk.ask.yesnocancel () whenever
possible.
Regards,
--
Prasenjit
More information about the Rkward-devel
mailing list