[R] Re-execute previous command
dwinsemius at comcast.net
Tue Feb 9 18:26:35 CET 2010
On Feb 9, 2010, at 12:13 PM, David Winsemius wrote:
> On Feb 9, 2010, at 11:21 AM, mnstn wrote:
>> Hello All,
>> In bash, to re-execute a command, say, 'gnuplot plot.gnu', one can
>> !gnu. Is there a similar feature in the R console? For example:
> In most system typeing <up-arrow> will prompt the console to echo
> the last command (and repeating the process will scroll back through
> There is also a .Last.value object but I don't know if it will
It will if the plotting function returned a value as do the lattice
and ggplot functions, but not if it returns NULL as do the base
>> Lines, many lines of commands
>> ->Here I want to repeat the previous plot command.
>> !plot and plot(+TAB) do not work.
>> This question was asked in this forum back in 2006 but the answer
>> seems to
>> have been lost somewhere in their discussions. This is the thread
>> . Can some one comment if there is a way to do it?
>> Thank you,
>> View this message in context: http://n4.nabble.com/Re-execute-previous-command-tp1474629p1474629.html
>> Sent from the R help mailing list archive at Nabble.com.
>> R-help at r-project.org mailing list
>> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
>> and provide commented, minimal, self-contained, reproducible code.
> David Winsemius, MD
> Heritage Laboratories
> West Hartford, CT
> R-help at r-project.org mailing list
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
David Winsemius, MD
West Hartford, CT
More information about the R-help