From: "Eric Schulte" <schulte.eric@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [babel] :session
Date: Mon, 19 Oct 2009 07:59:49 -0600 [thread overview]
Message-ID: <m2vdibwkkq.fsf@gmail.com> (raw)
In-Reply-To: <BB79121C-3E68-4F27-BBBB-4A203856D5A0@tsdye.com> (Thomas S. Dye's message of "Sun, 18 Oct 2009 18:10:05 -1000")
Hi Tom,
"Thomas S. Dye" <tsd@tsdye.com> 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
prev parent reply other threads:[~2009-10-19 14:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-19 4:10 [babel] :session Thomas S. Dye
2009-10-19 13:59 ` Eric Schulte [this message]
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2vdibwkkq.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=tsd@tsdye.com \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).