emacs-ess / ESS

Emacs Speaks Statistics: ESS
https://ess.r-project.org/
GNU General Public License v3.0
613 stars 160 forks source link

History of commands/code sent to ESS inferior process from script? #1221

Open hummuscience opened 1 year ago

hummuscience commented 1 year ago

Is there a way to retrieve the history of commands sent to the inferior process from another buffer/script?

I had a peculiar situation happening today. I had an ESS R process connected to a source block editing buffer where I was writing code and sending it to the inferior process, usual business. For some reason, leaving the edit mode of the source block produced an empty source block. The R process was still running, though.

I lost the code in the source block, but surely the R process contains a history of the sent commands. No? Or am I mistaken?