From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: How to end a :session? Date: Thu, 28 May 2015 10:44:25 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32783) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxtQe-0002Pe-1H for emacs-orgmode@gnu.org; Thu, 28 May 2015 04:44:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxtQa-0002lK-OM for emacs-orgmode@gnu.org; Thu, 28 May 2015 04:44:39 -0400 Received: from mail-wi0-f171.google.com ([209.85.212.171]:35724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxtQa-0002lF-IW for emacs-orgmode@gnu.org; Thu, 28 May 2015 04:44:36 -0400 Received: by wicmx19 with SMTP id mx19so138204296wic.0 for ; Thu, 28 May 2015 01:44:35 -0700 (PDT) Received: from Rainers-MacBook-Pro.local (arn78-1-88-186-171-7.fbx.proxad.net. [88.186.171.7]) by mx.google.com with ESMTPSA id b10sm7452651wic.1.2015.05.28.01.44.33 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 May 2015 01:44:34 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Hi I can start a session as follow: =2D-8<---------------cut here---------------start------------->8--- #+begin_src R :session Test cat("Session Test\n") #+end_src =2D-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 =2D-8<---------------cut here---------------start------------->8--- #+begin_src R :session Test q(save =3D "no) #+end_src =2D-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 =2D-=20 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 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG/MacGPG2 v2.0.22 (Darwin) iQEcBAEBAgAGBQJVZtVwAAoJENvXNx4PUvmC+/oH/0ImNsKW+z9Ul08SyjZ9hTOV R2vzQ5qD7bgARLjUP2h+EPzhJ6YInyQy7ARfgPANJMKAA7yrwiAkbNDPCVLjY3Ni JR43GaQ066/jxUi+umfrHRj9lK2I+if30vtQsQBOuIQ6JnXcNVPjfl/3d82JaE4U 852yBKMUvOu3d85N8YbI+YZdWpIU7CnMMe48bCyMU8LGfQGXvs6DoPhypOfnaMz3 wXDwlI3cp1YranCF8+N5sx/GrlHdr4TQL3BzfybrrN9yGdRVzu4wcePyXw3O1pJQ rnZRO7vo289SsMin47P9RdpJG3DRXVF03BSdvosqFf3/QOEge8gRw7at2uRBSgw= =ULLK -----END PGP SIGNATURE----- --=-=-=--