* Table width cookies become part of data table in R
@ 2024-11-15 4:29 William Denton
2024-11-15 11:59 ` Rens Oliemans
0 siblings, 1 reply; 3+ messages in thread
From: William Denton @ 2024-11-15 4:29 UTC (permalink / raw)
To: Emacs Org mode mailing list
Up until recently, width cookies were ignored when reading a table into an R code block as data. For example, take this test table:
#+name: test_table
| Date | Weather |
| <10> | <50> |
|------------+----------------------|
| 2024-11-01 | Warm |
| 2024-11-02 | Warm |
| 2024-11-03 | Still strangely warm |
This code block turns it into a basic data table:
#+begin_src R :var t=test_table :colnames yes
t
#+end_src
#+RESULTS:
| Date | Weather |
|------------+----------------------|
| <10> | <50> |
| 2024-11-01 | Warm |
| 2024-11-02 | Warm |
| 2024-11-03 | Still strangely warm |
That first row, with "<10>", shouldn't be there. It wasn't until recently, but I can't see anything in ORG-NEWS or git commits about why it might have started. (I'm running from the development tree, updated just now.)
Is this a bug or am I missing something?
Bill
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Table width cookies become part of data table in R
2024-11-15 4:29 Table width cookies become part of data table in R William Denton
@ 2024-11-15 11:59 ` Rens Oliemans
2024-11-15 14:23 ` William Denton
0 siblings, 1 reply; 3+ messages in thread
From: Rens Oliemans @ 2024-11-15 11:59 UTC (permalink / raw)
To: William Denton, Emacs Org mode mailing list
William Denton <william@williamdenton.org> writes:
> Up until recently, width cookies were ignored when reading a table into an R
> code block as data.
According to git bisect, the first bad commit is:
[e0924db3c55a44c8aa8d126fbb9b42cfc54f104c] orgtbl-to-generic: Retain special rows in code block table output
Rens
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Table width cookies become part of data table in R
2024-11-15 11:59 ` Rens Oliemans
@ 2024-11-15 14:23 ` William Denton
0 siblings, 0 replies; 3+ messages in thread
From: William Denton @ 2024-11-15 14:23 UTC (permalink / raw)
To: Emacs Org mode mailing list
On Friday, November 15th, 2024 at 06:59, Rens Oliemans <hallo@rensoliemans.nl> wrote:
> According to git bisect, the first bad commit is:
> [e0924db3c55a44c8aa8d126fbb9b42cfc54f104c] orgtbl-to-generic: Retain special rows in code block table output
Aha! Thank you. I wasn't looking at tables generally. I see now that ORG-NEWS has a "~orgtbl-to-generic~ retains special rows when exporting to Org" entry. It says, "To retain the old behaviour, add ~:with-special-rows nil~ to PARAMS argument." But:
#+name: test_table
| Date | Weather |
| <10> | <50> |
|------------+----------------------|
| 2024-11-01 | Warm |
| 2024-11-02 | Warm |
| 2024-11-03 | Still strangely warm |
#+begin_src R :var t=test_table :colnames yes :with-special-rows nil
t
#+end_src
#+RESULTS:
| Date | Weather |
|------------+----------------------|
| <10> | <50> |
| 2024-11-01 | Warm |
| 2024-11-02 | Warm |
| 2024-11-03 | Still strangely warm |
If I (setq org-org-with-special-rows nil) then this stops, but shouldn't the parameter work?
Bill
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-11-15 14:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-15 4:29 Table width cookies become part of data table in R William Denton
2024-11-15 11:59 ` Rens Oliemans
2024-11-15 14:23 ` William Denton
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).