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 Guidoni Martins via ESS-help <[email protected]>
| Newsgroups | gmane.emacs.ess.general |
|---|---|
| Message-ID | <CANJyiGQU6PeL5Bx2iEbPgd5mfe=cF+CzQOWWw+Ej7eJ=FtznOg@mail.gmail.com> |
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 <
[email protected]> 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
>
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/ess-help
>
[[alternative HTML version deleted]]
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/ess-help