Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I switch between R sessions in emacs-ess?

Tags:

emacs

r

tramp

ess

I have two sessions open in Emacs-ESS: one on my desktop and one on a server using tramp. How can I tell ESS which session to use?

like image 928
David LeBauer Avatar asked Dec 21 '10 21:12

David LeBauer


People also ask

How do I use ESS in Emacs?

To run ESS in Emacs you have to first download the compressed eLisp source files and install them according to the following instructions. As different file compression formats are routinely used for different operating systems both <. tgz> (Unix/Linux) and <. zip> (MS Windows) file formats are provided.

How do I use R in Emacs?

Start up Emacs without a file argument - just type emacs & at the prompt. Now execute R-mode - enter M-x R Think of M-x as `execute' and `R' for R. Emacs will then ask you for your R Starting Directory - enter the directory where you want to create a new (or open an already existing one) .


1 Answers

Well I use

M-x ess-switch-process

all the time to switch between my (local) R sessions inside Emacs. Sections 3.2 has details.

Edit As a follow-up to aL3xa's comment, I also have these in a my dot.emacs:

(require 'uniquify)
(setq uniquify-buffer-name-style 'post-forward-angle-brackets)
; Slightly more debatable
(global-set-key (kbd "C-x C-b") 'ibuffer)

which makes the process switch much nicer. Kudos to CGWalters, another Emacs user from whom I copied this.

like image 166
Dirk Eddelbuettel Avatar answered Sep 20 '22 12:09

Dirk Eddelbuettel