emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Property var alters behavior of org variables in R code blocks
@ 2012-08-30  9:40 Johannes Meisig
  0 siblings, 0 replies; only message in thread
From: Johannes Meisig @ 2012-08-30  9:40 UTC (permalink / raw)
  To: emacs-orgmode

Hi,

I encountered the following problem using org-mode with R code blocks. 
When using #PROPERTY: var in my org file to set global variables, R 
stops to recognize the column names of org tables defined like this:

#+TBLNAME: parameters-xlinked
| A | B |
|---+---|
| 1 | 2 |

#+begin_src R :session :var par.xlinked=parameters-xlinked :results 
output org
    ascii(par.xlinked)
#+end_src

#+RESULTS:
#+BEGIN_ORG
  |   | V1   | V2   |
|---+------+------|
| 1 | 1.00 | 2.00 |
#+END_ORG


without the variable defined I get the correct header:

#+RESULTS:
#+BEGIN_ORG
  |   | A    | B    |
|---+------+------|
| 1 | 1.00 | 2.00 |
#+END_ORG


So, somehow setting the variable property messes with the variable 
interface to R.

Johannes

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-30  9:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-30  9:40 Property var alters behavior of org variables in R code blocks Johannes Meisig

Code repositories for project(s) associated with this inbox:

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).