I generally use R from the command line. However, this problem has been annoying me. When I use the up arrow to get a previous command, if that command was multiple lines, then R only shows the last line (although if I execute the command, it executes the whole thing).
Any ideas about what setting I need to change to make this work as expected?
work as expected
? The input and the history management ofR
seems to be deeply related with the use ofreadline
when it is built with it. It is reported by theR
help that it can behave in different ways from different environments. Did you refer to something like the effect thatshopt -s cmdhist
or-u
has on thebash
history? Please add information about the version ofR
and of your environment (echo $BASH_VERSION
, if you run from konsole, xterm...) so it will be possible to start to write a table of behaviours. – Hastur Jun 17 '14 at 08:16But as Jeremy explained it is only a display problem. Pressing enter runs the code line properly.
– Prolix Jun 24 '15 at 09:01