* Can a code block be evaluated in multiple sessions
@ 2017-01-05 7:48 Jack Li
0 siblings, 0 replies; only message in thread
From: Jack Li @ 2017-01-05 7:48 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 557 bytes --]
Hi,
Can anyone tell me if a code block can be evaluated in multiple sessions?
In this toy example I provide, function "f1" is defined in the first block,
and I want to use "f1" in both the second block (session a) and the third
block (session b).
#+BEGIN_SRC R
f1 <- function(x,y,z) x+y+z
#+END_SRC
#+BEGIN_SRC R :session a
f1(1,2,3)
#+END_SRC
#+BEGIN_SRC R :session b
f1(2,4,6)
#+END_SRC
PS: the three blocks should be in one .org file, and, when exporting,
"session a" and "session b" will be run simultaneously and independently.
Thanks,
Jack
[-- Attachment #2: Type: text/html, Size: 855 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-01-05 7:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-05 7:48 Can a code block be evaluated in multiple sessions Jack Li
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.