In R, I like to use reverse search (ctrl+r) to redo infrequent but complex commands without a script. Frequently, I will do so many other commands in between that the command history discards the old command. How can I change the default length of the command history?
Share
This is platform and console specific. From the help for
?savehistory:So, in theory, you can read and set
R_HISTSIZEwith:But, in practise, this may or may not have any effect.
See also
?Sys.setenvand?EnvVar