[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (rele
From: |
Sebastien Vauban |
Subject: |
Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)] |
Date: |
Fri, 29 May 2015 20:00:31 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) |
Nicolas Goaziou <address@hidden> writes:
> Titus von der Malsburg <address@hidden> writes:
>> On 2015-05-24 Sun 10:09, Thomas S. Dye wrote:
>>> Titus von der Malsburg <address@hidden> writes:
>>>> On 2015-05-24 Sun 08:36, Thomas S. Dye wrote:
>>>>> Titus von der Malsburg <address@hidden> writes:
>>>>>
>>>>>>> You got the result of rownames(x), which is expected. The table you
>>>>>>> expect is given by the following code:
>>>>>>
>>>>>> Ah, I see, thanks. Although the results is still somewhat
>>>>>> unexpected. c("One:", "Two:") doesn’t have rownames and colnames. So
>>>>>> org apparently made them up when generating the table.
>>>>>
>>>>> Also expected due to :rownames yes :colnames yes. Without those two
>>>>> header arguments:
>>>>
>>>> Consider this example:
>>>>
>>>> #+BEGIN_SRC R :results table :exports results :colnames yes :rownames yes
>>>> v <- c("a", "b")
>>>> #+END_SRC
>>>>
>>>> #+RESULTS:
>>>> | | x |
>>>> |---+---|
>>>> | 1 | a |
>>>> | 2 | b |
>>>>
>>>> Where is the “x” coming from? In R, colnames(v) gives me NULL.
>>>
>>> rownames(v) is also NULL.
>>>
>>> You are asking Org mode to produce a table with row and column names
>>> from a vector, which lacks rows and columns. What behavior do you
>>> expect?
>>
>> Almost anything is better than Org showing me values that do not exist
>> in the original data. Empty cells for row and columns names are
>> probably the best solution because that would be faithful to the data
>> and to the settings (:rownames yes :colnames yes).
>
> AFAICT, the "x" comes from R, not Org. It could also come from the way
> Org calls R, but I don't know enough of the latter to tell.
The thread "colnames with a list of columns does not work" (see
https://lists.gnu.org/archive/html/emacs-orgmode/2015-01/msg00589.html)
shouldn't be forgotten, as it contains an (un?)applied patch -- can't
verify now.
Best regards,
Seb
--
Sebastien Vauban
- [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Titus von der Malsburg, 2015/05/24
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Thomas S. Dye, 2015/05/24
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Titus von der Malsburg, 2015/05/24
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Thomas S. Dye, 2015/05/24
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Titus von der Malsburg, 2015/05/24
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Thomas S. Dye, 2015/05/24
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Titus von der Malsburg, 2015/05/24
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Nicolas Goaziou, 2015/05/29
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)],
Sebastien Vauban <=
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Charles C. Berry, 2015/05/29
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Titus von der Malsburg, 2015/05/29
- Re: [O] Bug: Org export to latex produces incorrect table [8.3beta (release_8.3beta-1157-g8ddb84 @ /home/malsburg/usr/share/emacs/site-lisp/org/)], Thomas S. Dye, 2015/05/29