[ESS] [External Email] Re: When the R window opens, sometimes it is side-by-side with my .Rnw file. I want them one above the other. It seems unpredictable
James W. MacDonald
jm@cdon @end|ng |rom uw@edu
Thu Jun 2 23:25:06 CEST 2022
I have the following two lines in my .emacs file, and it's always side by side (I open an Rmd file, and it's one buffer, I either start R or simply send an R command using C-c C-n or related and now I have two buffers, with the Rmd on the left and the R buffer on the right as I personally prefer).
(setq split-height-threshold nil)
(setq split-width-threshold 0)
And if I swap to be 0 for the first one and nil for the second, it's always R on the bottom.
Best,
Jim
-----Original Message-----
From: ESS-help <ess-help-bounces using r-project.org> On Behalf Of Christopher W. Ryan via ESS-help
Sent: Thursday, June 02, 2022 5:06 PM
To: ESS-help <ess-help using r-project.org>
Subject: Re: [ESS] [External Email] Re: When the R window opens, sometimes it is side-by-side with my .Rnw file. I want them one above the other. It seems unpredictable
Karlo, can I put that in my .emacs file? I'm not yet familiar with init.el. In fact, I can't find such a file on my system. Would I need to create it?
Thanks.
--Chris
Karlo Guidoni Martins wrote:
> You can control both window size and position setting the
> display-buffer-alist variable in your init.el file. The following
> snippet should work:
> (setq display-buffer-alist
> `(("*R"
> (display-buffer-reuse-window display-buffer-at-bottom)
> (slot . 1)
> (window-height . 0.3)
> (reusable-frames . 0)))
>
> Also, have a look at:
> https://ess.r-project.org/Manual/ess.html#Controlling-buffer-display
>
>
>
>
> On Fri, May 27, 2022, 18:27 Christopher W. Ryan via ESS-help
> <ess-help using r-project.org <mailto:ess-help using r-project.org>> wrote:
>
> I'm using Vince Goulet's modified version of emacs 26.2 (build 1,
> x86_64-w64-mingw32) of 2019-04-13 with ESS, on Windows 10. I use Sweave
> and LaTeX, so I have my R code in .Rnw files. When I execute my first
> line of R code, an R buffer opens of course. I prefer it to be below my
> Rnw buffer. Sometimes it is. But other times the R buffer opens to the
> side. It's unpredictable, which is disconcerting; I have not been able
> to discern a pattern. How can I ensure that every time emacs/ESS opens
> an R buffer, the emacs window is split top-and-bottom, rather than
> side-by-side.
>
> Thanks.
>
> --Chris Ryan
>
> ______________________________________________
> ESS-help using r-project.org <mailto:ESS-help using r-project.org> mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
______________________________________________
ESS-help using r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help
More information about the ESS-help
mailing list