[ESS] history and completion problems
Stephen Eglen
S.J.Eglen at damtp.cam.ac.uk
Fri Jul 29 16:51:42 CEST 2005
> > > 2) The abbreviated history commands ( such as !! and !foo ) do
> > > 2) not work.
They work for me, but with a slight difference to what you might
expect
> date()
[1] "Fri Jul 29 15:46:08 2005"
> !!
but instead of pressing return after the second !, press TAB:
> date()
and then you press RET to re-execute.
This is documented:
To convert a history reference as described above to an input
suitable for S, you need to "expand" the history reference, using the
<TAB> key. For this to work, the cursor must be preceded by a space
(otherwise it would try to complete an object name) and not be within a
string (otherwise it would try to complete a filename). So to expand
the history reference, type `SPC TAB'. This will convert the history
reference into an S command from the history, which you can then edit
or press <RET> to execute.
For example, to execute the last command that referenced the variable
`data', type `!?data SPC TAB RET'.
Stephen
More information about the ESS-help
mailing list