[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] How to end a :session?

From: Rainer M Krug
Subject: [O] How to end a :session?
Date: Thu, 28 May 2015 10:44:25 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin)


I can start a session as follow:

--8<---------------cut here---------------start------------->8---
#+begin_src R :session Test
cat("Session Test\n")
--8<---------------cut here---------------end--------------->8---

Now I hava an R session named *Test*. But how can I closes this session?
I thought about just quitting R

--8<---------------cut here---------------start------------->8---
#+begin_src R :session Test
q(save = "no)
--8<---------------cut here---------------end--------------->8---

but this does not return as ESS is waiting for the prompt (">").

Is there a way of closing the session *Test* and close the buffer?

My reasoning is that I want to do different longer analysis in one org
file and start each in its own session, i.e. clean R. But as they
involve several steps, I don't want to put them into one code block.

So I have several code blocks which I want to execute in a "throw away
session" which I would like to discard afterwards.

So I am looking for something like


which would then close the session *Test*

Is something like this possible at the moment?


Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, 
UCT), Dipl. Phys. (Germany)

Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa

Tel :       +33 - (0)9 53 10 27 44
Cell:       +33 - (0)6 85 62 59 98
Fax :       +33 - (0)9 58 10 27 44

Fax (D):    +49 - (0)3 21 21 25 22 44

email:      address@hidden

Skype:      RMkrug

PGP: 0x0F52F982

Attachment: signature.asc
Description: PGP signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]