4

(How) can I include (or their resulting variables) in an org table?

* Inline code in table 
src_R{1+1}
| src_R{1+1} | 

when exported to, e.g. HTML, results in

Inline code in table
2
src_R{1+1}
3

The answer is org-sbe (for "source block evaluate")

#+NAME: function-name
#+BEGIN_SRC R
1+1
#+END_SRC

| 2 |
#+TBLFM: @1$1='(org-sbe function-name)

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.