Re: [Rd] bash-like history mechanism and prompt settings

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Thu 13 Apr 2006 - 10:22:19 GMT


From: Romain Francois
>
> Hi,
>
> I have a couple of questions:
> * would it be possible to add more information on the history, for
> example the number of the command and a timestamp. With the number of
> command, one could do some stuff like in a terminal to recall
> a specific
> command :
> $ !45
> and with the timestamp, one could imagine to ask for commands
> that were
> typed in a given interval of time. For example :
> R> history(before="Thu Apr 13 8:54:14 2006")
>
> * My other question is about the prompt, is it possible to make it
> dynamic, ie to mimic the PS1 variable in bash. R would use a
> prompt that
> would tell (for example) the current time, and the number of
> the command
> to come
> [445-10:58:54] R>

See http://finzi.psych.upenn.edu/R/Rhelp02a/archive/0335.html

Andy  

> (I'm using R from gnome-terminal on fedora 5)
>
> Regards,
>
> Romain
>
> --
> visit the R Graph Gallery : http://addictedtor.free.fr/graphiques
> mixmod 1.7 is released :
> http://www-math.univ-fcomte.fr/mixmod/index.php
> +---------------------------------------------------------------+
> | Romain FRANCOIS - http://francoisromain.free.fr |
> | Doctorant INRIA Futurs / EDF |
> +---------------------------------------------------------------+
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri Apr 14 00:13:35 2006

This archive was generated by hypermail 2.1.8 : Thu 13 Apr 2006 - 16:17:13 GMT