From: Jack Li <jackli2046@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Can a code block be evaluated in multiple sessions
Date: Thu, 5 Jan 2017 15:48:33 +0800 [thread overview]
Message-ID: <CADMMsyuDsaO5Zk7X9_4d7W5T3s=scOTk3ypan7S_q-LFmOtL7w@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2017-01-05 7:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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='CADMMsyuDsaO5Zk7X9_4d7W5T3s=scOTk3ypan7S_q-LFmOtL7w@mail.gmail.com' \
--to=jackli2046@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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).