emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* bug: orgtbl-to-tsv: premature end of table
@ 2015-07-14 21:26 lom pik
  2015-07-22 21:34 ` Charles C. Berry
  0 siblings, 1 reply; 6+ messages in thread
From: lom pik @ 2015-07-14 21:26 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1110 bytes --]

Hi,

-- this was only tested with the current git version

I was trying to export a table as a variable to R via babel evaluation.
However it seems that is the rows are empty , the exported table ends at
the last non-empty value.

For example,the second row of tbl-issue defined below ends with 2 columns
[8,9]. The next table however works ok. I've narrowed down the cause to the
orgtbl-to-tsv function as highlighted below.

#+NAME: tbl-issue
| 1 | 2 | 3 | 5 | 6 | 7 |
| 8 | 9 |   |   |   |   |
#+BEGIN_SRC R :session *R* :var df2=tbl-issue  :results value    ## won't
work
print(df2)
#+END_SRC

 (orgtbl-to-tsv '( (1 2 #1="" #1# #1# #1# ) ) '(:fmt
org-babel-R-quote-tsv-field))   ->   "\"1\"<tab>\"2\""



#+NAME: tlb-ok
| 1 | 2 | 3 | 5 | 6 | 7 |
| 8 | 9 |   |   |   | 10  |
#+BEGIN_SRC R :session *R* :var df2=tbl-ok  :results value      # work ok
print(df2)
#+END_SRC

 (orgtbl-to-tsv '( (1 2 #1="" #1# #1# #1# 10) ) '(:fmt
org-babel-R-quote-tsv-field))  ->
"\"1\"<tab>\"2\"<tab><tab><tab><tab><tab>\"1\""



Emacs 24.5 with Org-mode version 8.3beta
(release_8.3beta-1286-g20795f.dirty )

Regards,
lompik

[-- Attachment #2: Type: text/html, Size: 1588 bytes --]

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

end of thread, other threads:[~2015-07-23  9:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-14 21:26 bug: orgtbl-to-tsv: premature end of table lom pik
2015-07-22 21:34 ` Charles C. Berry
2015-07-22 22:41   ` Nicolas Goaziou
2015-07-22 23:17     ` lom pik
2015-07-23  4:04     ` Charles C. Berry
2015-07-23  9:13       ` 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).