[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] :session question

From: Andreas Röhler
Subject: Re: [O] :session question
Date: Wed, 27 Mar 2013 11:10:39 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130307 Thunderbird/17.0.4

Am 27.03.2013 10:27, schrieb Andreas Leha:
Andreas Röhler <address@hidden> writes:

Am 26.03.2013 16:31, schrieb Eric Schulte:
Achim Gratz <address@hidden> writes:

Am 26.03.2013 13:37, schrieb Eric Schulte:
This can be done system wide by setting the language-specific header

I've yet to see an example on how to do this.

      #+begin_src emacs-lisp
        (setq org-babel-default-header-args:R
              '((:session . "org-R")))

      | (:session . org-R) |

      #+begin_src R
      x <- 1

      : 1

      #+begin_src R

      : 1


this looks very confusing for me.

So, what is the purpose of a named session?
Understood it being a name-space, whose values don't affect the other ones.
What's in python-mode a dedicated shell.

I can't speak for python, but in R, every differently named session will
run within its own R process.

The cool thing is, that I can work on file_foo.org and file_bar.org
simultaneously, when file_foo.org uses R-session *foo* and file_bar.org
uses R-session *bar*.



Okay, that's the expected usage.
How do you read the example displayed?

Looks like a named (:session . "org-R") affects global R namespace.

What did "org-R" say here, what might be the purpose?

Assume it should switch it on. Then "org-R" represents a boolean here?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]