[ESS] [External] R Transcript opens in readonly buffer
Richard M. Heiberger
rmh @end|ng |rom temp|e@edu
Sat Nov 25 20:54:54 CET 2023
Yes, that is the designed behavior. A transcript is the history of a previous session. Normally you
would not want to change it.
What you might want to do is open a new .r file and copy the source code from the transcript into
the new file. Pick up the entire section of transcript (input with prompts, and output) and then
paste it into a new .r buffer with the command C-u C-u C-y for ‘ess-yank-cleaned-commands’.
pick up three lines from oldfile.rout or from *R*
> 5 + 4
[1] 9
>
and paste them with C-u C-u C-y into file tmp.r or, perhaps directly into *R*
5 + 4
Note that all prompts and responses have been removed.
And in the rare case that you actually want to edit history, you can
always use C-x C-q to toggle read-only mode.
Rich
> On Nov 25, 2023, at 00:02, Ishe Chinyoka via ESS-help <ess-help using r-project.org> wrote:
>
> Hi,
>
> I am having a problem whereby if I save a .Rout transcript,
> when I try to open it next time, I cannot edit it. It opens the buffer
> in readonly mode. What could be the cause of opening in readonly mode? I
> wnat to continue working on some transcript in a new session.
>
> I am using emacs 29 and ESS version 18.10.3snapshot on Archlinux.
>
> TIA,
>
> Ishe
>
> ______________________________________________
> ESS-help using r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list