ob-R.el: fix a bug when a :var is propertized text
commitd035c1476537ca93594bf07ed2faebca2dafade3
authorAaron Ecay <aaronecay@gmail.com>
Thu, 7 Aug 2014 05:46:11 +0000 (7 01:46 -0400)
committerAaron Ecay <aaronecay@gmail.com>
Thu, 7 Aug 2014 05:54:23 +0000 (7 01:54 -0400)
tree1d5118c95c9cb11cf62dd7cfc54f096ac2ff8a64
parent6fa58b3cc2e1287c895e5fb06a3b5acaf5de3c89
ob-R.el: fix a bug when a :var is propertized text

* lisp/ob-R.el (org-babel-R-assign-elisp): Strip text properties from
strings.

Before this change, babel would try to format propertized strings
using elisp read syntax.  The upshot is that evaluating the following
code block would give an error (in R, not emacs), since the “bar” in
foo-ex gets text properties via font lock:

| #+name: foo-ex
| #+begin_example
| bar
| #+end_example
|
| #+name: foo
| #+begin_src R :var foo=foo-ex
|   foo
| #+end_src
lisp/ob-R.el