I'm using emacs 26.1 with ESS. Whenever I open a R session with
M-x R it opens in a random window. However, I would like it to open in the currently selected window.
It seems to be a similar issue as here emacs opens shells in a random window, how to change this? but the provided solution does not work for me.