[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

Christopher W. Ryan cry@n @end|ng |rom b|ngh@mton@edu
Thu Jun 2 23:05:41 CEST 2022

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?



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

More information about the ESS-help mailing list