From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: [babel] :session Date: Sun, 18 Oct 2009 18:10:05 -1000 Message-ID: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0163857972==" Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzjZZ-0006kK-E1 for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 00:10:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzjZU-0006jQ-Dy for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 00:10:16 -0400 Received: from [199.232.76.173] (port=56783 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzjZU-0006jN-7a for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 00:10:12 -0400 Received: from outbound-mail-148.bluehost.com ([67.222.38.38]:52985) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1MzjZT-00039l-PU for emacs-orgmode@gnu.org; Mon, 19 Oct 2009 00:10:12 -0400 Received: from cpe-24-161-159-72.hawaii.res.rr.com ([24.161.159.72] helo=[192.168.1.2]) by box472.bluehost.com with esmtpa (Exim 4.69) (envelope-from ) id 1MzjZO-00058O-Ua for emacs-orgmode@gnu.org; Sun, 18 Oct 2009 22:10:07 -0600 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: emacs-orgmode@gnu.org --===============0163857972== Content-Type: multipart/alternative; boundary=Apple-Mail-73-592815105 --Apple-Mail-73-592815105 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Aloha all, In org-babel.org one of the R examples uses a header argument :session that is not otherwise documented. 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? 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 --Apple-Mail-73-592815105 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Aloha = all,

In org-babel.org one of the R examples uses a = header argument :session that is not otherwise documented.  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?

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

=

= --Apple-Mail-73-592815105-- --===============0163857972== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ 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 --===============0163857972==-- 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