[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Table (used a "spreadsheet") org-sbe issues when the value is a stri
From: |
Frederick Giasson |
Subject: |
[O] Table (used a "spreadsheet") org-sbe issues when the value is a string |
Date: |
Wed, 22 Jun 2016 08:37:36 -0400 |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.2 |
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
- [O] Table (used a "spreadsheet") org-sbe issues when the value is a string,
Frederick Giasson <=