Is there any IDE -from the ones supporting R-, that gives access to the command history (at least to the current session's commands)? Or is there a way to get a (character or expression) vector with those commands in R?
For those of you that have been using MATLAB, I mean something like the Command History window there..
Thank you
Click the history tab to show the history panel. The history panel shows every line of code executed in the current session. The last line of code is at the bottom of the history list. You can copy any line in the history panel to the command console for re-execution by simply double clicking it.
2.4.In the upper right pane of R Studio, you'll see the Environment and History pane. Click on the History tab, and you should see a history of all of the commands that you have sent to the R console in this session. Figure 2.8: Notice the code in the History tab.
Here's how: Open Start. Search for Command Prompt, and click the top result to open the console. Type the following command to view the command history and press Enter: doskey /history.
To enter this mode you simply press ctrl and r. You can then enter a search term and use repeat presses of ctrl and r to step back through the list of previous commands containing that term.
history(Inf)
opens a window similar to that in MATLAB.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With