[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Local variables in an org file

From: Thomas S . Dye
Subject: Re: [O] Local variables in an org file
Date: Thu, 20 Aug 2015 16:52:13 -1000

Aloha all,

Grant Rettke <address@hidden> writes:

> I've been thinking about this all week. Must be in the global memory space.
> Grant Rettke

Here is one way.

* Define a local variable
#+name: my-var
#+header: :exports none
#+begin_src R

#+name: pass-my-var-to-code-block
#+header: :var x=my-var
#+header: :exports both
#+begin_src emacs-lisp
(+ x 1)

#+results: pass-my-var-to-code-block
: 769

The variable is call_my-var().

When I export this to an ASCII buffer, I get:

1 Define a local variable

  | (+ x 1)

  | 769

  The variable is `768'.

All the best,

Thomas S. Dye

reply via email to

[Prev in Thread] Current Thread [Next in Thread]