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