emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Org Babel resolution of `:var` value reference inconsistent
@ 2015-11-02  7:40 myq
  2015-11-02  9:01 ` Andreas Leha
  0 siblings, 1 reply; 7+ messages in thread
From: myq @ 2015-11-02  7:40 UTC (permalink / raw)
  To: emacs-orgmode

Sometime since Org version 8.3beta and now, the way Org Babel resolves
the value of the `:var` header argument when assigned to a reference has
changed.

Previously, the following would work when exporting:

--8<---------------cut here---------------start------------->8---
* test

#+BEGIN_SRC R :var dat=table-data
  print(summary(dat));
#+END_SRC

** COMMENT

#+TBLNAME: table-data
| number | measurement |
|--------+-------------|
| 1      | 10          |
--8<---------------cut here---------------end--------------->8---

The above /still/ works when manually evaluating the block (C-c C-c whil
in the block), but when exporting, the following error is thrown:
`org-babel-ref-resolve: Reference `table-data' not found in this buffer`

Curiously, the following tweak works for both manual evaluation and for
exporting and produces the same results that the above file used to
produce:

--8<---------------cut here---------------start------------->8---
#+OPTIONS: inline:nil
* test

#+BEGIN_SRC R :var dat=table-data
  print(summary(dat));
#+END_SRC

*************** test
#+TBLNAME: table-data
| number | measurement |
|--------+-------------|
| 1      | 10          |
*************** END
--8<---------------cut here---------------end--------------->8---

This seems to be a bug, but perhaps there is a reason for this new
behaviour?

Thank you in advance for any insights.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2015-11-05 20:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-02  7:40 Org Babel resolution of `:var` value reference inconsistent myq
2015-11-02  9:01 ` Andreas Leha
2015-11-02 13:19   ` Nick Dokos
2015-11-04 12:14     ` Andreas Leha
2015-11-05 12:56       ` Martin Carlé
2015-11-05 14:48         ` Nicolas Goaziou
2015-11-05 20:53           ` Andreas Leha

Code repositories for project(s) associated with this public 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).