Andreas Leha <andreas.l...@med.uni-goettingen.de> writes:

> Hi all,
>
> I'd like to pass a string to a source block -- not directly, though, but
> through a reference.  What is the recommended way to do this?
>
> This is what I gather from the manual:
>
> --8<---------------cut here---------------start------------->8---
> #+name: myvar
> | aaa |
>
> #+begin_src R test :var myvar=myvar[0,0]
>   print(myvar)
> #+end_src
> --8<---------------cut here---------------end--------------->8---
> My question is: How can I get rid of the [0,0]?

How about:

#+BEGIN_SRC Org
#+NAME: myvar
: 4

#+BEGIN_SRC R :var x=myvar
x
#+END_SRC

#+RESULTS:
: 4
#+END_SRC 

-- 
This is the kind of tedious nonsense up with which I will not put


Reply via email to