Hi Everybody,
I am experiencing a few issues trying to update a cell value using
=org-sbe= when the value of a column is a string.
Here is an example that works when the value is a number:
====================
#+NAME: average-dataset-size
#+BEGIN_SRC clojure :var f="turtle" :exports none :results value
(identity f)
#+END_SRC
#+RESULTS: average-dataset-size
: turtle
| Format | Sizes distribution in MB | Average size in MB |
|--------+--------------------------+--------------------|
| 7 | | 7 |
#+TBLFM: $3='(org-sbe "average-dataset-size" (f $1))
====================
Now, if I put a string in the format column, I al getting the following:
====================
#+NAME: average-dataset-size
#+BEGIN_SRC clojure :var f="turtle" :exports none :results value
(identity f)
#+END_SRC
#+RESULTS: average-dataset-size
: turtle
| Format | Sizes distribution in MB | Average size in MB |
|--------+--------------------------+--------------------|
| turtle | | #ERROR |
#+TBLFM: $3='(org-sbe "average-dataset-size" (f $1))
====================
The debugging session I have is (which doesn't tell me with Result: is
#ERROR):
====================
Substitution history of formula
Orig: ?
$xyz-> '(org-sbe "average-dataset-size" (f $1))
@r$c-> '(org-sbe "average-dataset-size" (f $1))
$1-> '(org-sbe "average-dataset-size" (f "turtle"))
Result: #ERROR
Format: NONE
Final: #ERROR
====================
Note #1: (identity) is a function in Clojure that returns the same value
that is in input.
I am wondering if this is a bug, or something that I am missing in how
to use these features?
Thanks for helping,
Fred