all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: lom pik <lompikvoila@gmail.com>
To: emacs-orgmode@gnu.org
Subject: [BUG] orgtbl-to-tsv: premature end of table
Date: Mon, 13 Jul 2015 15:21:23 -0500	[thread overview]
Message-ID: <CAMg2vZpgfA1KVnnsXS27K6NiF7S3oHDv0+S0-42AB0xUNmyUpg@mail.gmail.com> (raw)

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

Hi,

-- this was only tested with the 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: 1514 bytes --]

                 reply	other threads:[~2015-07-13 20:21 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAMg2vZpgfA1KVnnsXS27K6NiF7S3oHDv0+S0-42AB0xUNmyUpg@mail.gmail.com \
    --to=lompikvoila@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.