0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-30 06:43:23 +00:00
org-mode/lisp
Dan Davison e4263daf76 Make org table result have header row and hline when appropriate. (This should have been included with commit a39d68640e). The approach I've taken is to make R always write the column names into the tsv file. If the result does not have user-supplied column-names, then R writes default column names of the form V1,V2,...,V$numcols. After reading the tsv back into lisp, we check whether it has "real" column names or the R defaults. If it has real column names, then I give the org table an hline.
I expect this will conflict with Eric's work on sessions, but we can deal with that.

There is a remaining quoting issue that needs to be dealt
with. E.g. with an unquoted string in the input, it comes out as
quoted in the result. This seems bad, since if you use the output as
new input you get something different (with extra
quoting). (non-idempotence if that's the right term).

| col1 | col2    | col3 |
|------+---------+------|
|    1 | 2       |    3 |
|    4 | schulte |    6 |

tabel

| "col1" | "col2"    | "col3" |
|--------+-----------+--------|
|      1 | 2         |      3 |
|      4 | "schulte" |      6 |
2009-05-30 16:45:26 -04:00
..
org-babel-comint.el small additions to org-babel-comint.el 2009-05-29 17:45:40 -07:00
org-babel-exp.el renaming the org-babel/ directory to the lisp/ directory 2009-05-24 13:56:20 -07:00
org-babel-init.el removed org-babel-ui (tabbing blocks) as the functionality will be included in org-mode core 2009-05-27 16:34:48 -07:00
org-babel-lisp.el renaming the org-babel/ directory to the lisp/ directory 2009-05-24 13:56:20 -07:00
org-babel-R.el Make org table result have header row and hline when appropriate. (This should have been included with commit a39d68640e). The approach I've taken is to make R always write the column names into the tsv file. If the result does not have user-supplied column-names, then R writes default column names of the form V1,V2,...,V$numcols. After reading the tsv back into lisp, we check whether it has "real" column names or the R defaults. If it has real column names, then I give the org table an hline. 2009-05-30 16:45:26 -04:00
org-babel-ref.el Allowing org-tables with hline to be referred to and passed into R. If hline is present, the first row of the table becomes the column names in R. This allows the grades example to run for me which was not true before. Eric: any commits I make should be viewed as tentative -- feel free to reject or recode them. 2009-05-30 15:00:06 -04:00
org-babel-script.el renaming the org-babel/ directory to the lisp/ directory 2009-05-24 13:56:20 -07:00
org-babel-shell.el renaming the org-babel/ directory to the lisp/ directory 2009-05-24 13:56:20 -07:00
org-babel-table.el renaming the org-babel/ directory to the lisp/ directory 2009-05-24 13:56:20 -07:00
org-babel.el Made org-babel-remove-result interactive. Eric if you agree do you want to decide on a binding? 2009-05-30 15:59:46 -04:00