[ESS] [External] R Transcript opens in readonly buffer
Ishe Chinyoka
ch|nyok@@con@u|t@nt @end|ng |rom y@hoo@com
Sat Nov 25 23:00:56 CET 2023
Thanks Rich, I thought something was wrong with my setup. I had thought
that the transcript was to make it easy to carry on with a session after
knocking off from your computer for some time.
But then one queer thing is that when I set the variable
ess-ask-about-transfile which, according to the ESS Manual in Section
4.2.4., is meant to let me save my session by providing a name at the
start of the session. When I do that, it means that R always starts in
readonly mode the moment I provide a name to save the session under. For
example, typing, rainfall_patterns_in_africa.Rout will not let me do
anything in that session. So how can we reconcile the usage of this
variable and that transcripts are not meant to be edited? In fact, the
manual seems to suggest that it's possible to just save a session in a
transcript and manipulate it later on with resubmission of commands in
the transcript. What is happening to me right now is that Emacs seems
not to associate my transcripts with the essay-r mode. Trying M-p to
choose a previous command brings up the message, "Not a valid command".
Thanks again for your help. Otherwise so far, in other respects, Ess in
emacs is working fine: only having issues with these transcripts.
Ishe
"Richard M. Heiberger" <rmh using temple.edu> writes:
> 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