0

I have an org-babel code block like so:

#+BEGIN_SRC R :var a=~/path/to/project

Do something here

#+END_SRC

How can I reference variable a without having to evaluate the block?

Drew
  • 75,699
  • 9
  • 109
  • 225
Adam
  • 1,857
  • 11
  • 32
  • 2
    Variable `a` is defined only within the block, so you cannot reference it outside the block or without evaluating it. I'm not really sure what you want to do though: maybe expand the question a bit? – NickD Apr 24 '20 at 13:39
  • [This](https://emacs.stackexchange.com/questions/13244/edebug-orgmode-source-code-blocks-with-input-variables) might help to give you some ideas, although it is almost certainly *not* what you are asking. – NickD Apr 25 '20 at 19:18

0 Answers0