[ESS] new user questions: appending to transcripts and buffer management
Henning Redestig
henning.red at googlemail.com
Sun Aug 15 05:33:42 CEST 2010
2010/8/15 Alex Bokov <bokov at uthscsa.edu>:
> I've been working with R for a couple of years, but I have taken the plunge
> into emacs and ESS only recently. I was surprised by how much I was able to
> figure out about using ESS by searching on my own, but the following two
> questions are still stumping me and I hope someone here can help.
>
> 1. If I quit an R session without quitting the buffer then later start a
> new one in that buffer, it will append to the existing buffer contents after
> delimiting them with a form-feed. This would be an improvement over the
> native loadhistory() and savehistory() method, except that it only works
> until I have to quit emacs. I cannot just save the transcript file with C-x
> C-w and restore the buffer state from it later. The .St file gets opened in
> ess-transcript mode instead of in R-mode and even though I can still send
> previous commands to an R process in a separate buffer, there doesn't seem
> to be any way to append to the original .St file. If I save the new R buffer
> to an .St file, it overwrites the original.
>
> How can I either append to an .St file or in some other way restore the
> exact state of an R buffer after rebooting my laptop?
>
If you open your Rt file and then do rename-buffer and name it *R* and
make it read-write by C-x C-q, the next R-session will start in that
buffer.
--
/Henning
More information about the ESS-help
mailing list