From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [babel] :session Date: Mon, 19 Oct 2009 07:59:49 -0600 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzsmG-0008Kt-0s for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 10:00:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzsmB-0008GQ-Cl for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 09:59:59 -0400 Received: from [199.232.76.173] (port=56164 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzsmB-0008G7-5K for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 09:59:55 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:32888) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzsmA-0006Z0-LT for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 09:59:54 -0400 Received: by pxi40 with SMTP id 40so3817264pxi.24 for ; Mon, 19 Oct 2009 06:59:53 -0700 (PDT) In-Reply-To: (Thomas S. Dye's message of "Sun, 18 Oct 2009 18:10:05 -1000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org Hi Tom, "Thomas S. Dye" writes: > Aloha all, > > In org-babel.org one of the R examples uses a header argument :session that is not otherwise documented. > What a glaring omission, we will have to add this to the documentation. Thanks for pointing this out. > I don't trust my Lisp understanding enough to learn about it from the > source code. Would it be possible to add it to the documentation? > In the mean time, a quick overview of the session argument is that it allows the execution of source-code blocks to take place in a persistent "session". So in R rather than evaluating the block using the R command line, an *R* buffer will be created and evaluation will take place in that buffer. This allows the persistence of environment between different source-code blocks. So it would be possible to create a variable in one source-code block, and reference it in another if both blocks have the same session header argument. Adding a string after :session will name that session, while just the session header will use the default session -- i.e. *R* for r code, or *ruby* for ruby, etc... Best -- Eric > > org-babel is lots of fun--many, many possibilities ... > > Tom > > Thomas S. Dye, Ph.D. > > T. S. Dye & Colleagues, Archaeologists, Inc. > > Phone: (808) 529-0866 Fax: (808) 529-0884 > > http://www.tsdye.com > > _______________________________________________ > Emacs-orgmode mailing list > Remember: use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode