all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Christopher Witte <chris@witte.net.au>
To: Rainer M Krug <Rainer@krugs.de>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: How to end a :session?
Date: Thu, 28 May 2015 12:07:24 +0200	[thread overview]
Message-ID: <CAALnB3F2j==oBO=zHhbXthsXFbd8+56h8wixf5H-N=g5o0sMzA@mail.gmail.com> (raw)
In-Reply-To: <m2lhg9xf9y.fsf@krugs.de>

[-- Attachment #1: Type: text/plain, Size: 1792 bytes --]

perhaps what you want is a named session, see
http://orgmode.org/manual/session.html

On 28 May 2015 at 10:44, Rainer M Krug <Rainer@krugs.de> wrote:

> Hi
>
> I can start a session as follow:
>
> --8<---------------cut here---------------start------------->8---
> #+begin_src R :session Test
> cat("Session Test\n")
> #+end_src
> --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)
> #+end_src
> --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
>
> #+CLOSE_SESSION Test
>
> which would then close the session *Test*
>
> Is something like this possible at the moment?
>
> Rainer
>
> --
> 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:      Rainer@krugs.de
>
> Skype:      RMkrug
>
> PGP: 0x0F52F982
>

[-- Attachment #2: Type: text/html, Size: 2779 bytes --]

  reply	other threads:[~2015-05-28 10:07 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-28  8:44 How to end a :session? Rainer M Krug
2015-05-28 10:07 ` Christopher Witte [this message]
2015-05-28 10:09   ` Rainer M Krug
2015-05-28 10:31     ` Andreas Leha
2015-05-28 11:09       ` Rainer M Krug
2015-05-28 11:46         ` Andreas Leha
2015-05-28 12:00           ` Rainer M Krug
2015-05-28 12:02             ` Andreas Leha
2015-05-28 12:08               ` Rainer M Krug

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAALnB3F2j==oBO=zHhbXthsXFbd8+56h8wixf5H-N=g5o0sMzA@mail.gmail.com' \
    --to=chris@witte.net.au \
    --cc=Rainer@krugs.de \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.