emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: (R?) colnames sometimes appear, sometimes don't [9.1.13 (release_9.1.13 @ /usr/local/share/emacs/site-lisp/org/)]
@ 2018-10-29 14:11 Greg Minshall
  0 siblings, 0 replies; only message in thread
From: Greg Minshall @ 2018-10-29 14:11 UTC (permalink / raw)
  To: emacs-orgmode

Remember to cover the basics, that is, what you expected to happen and
what in fact did happen.  You don't know how to make a good report?  See

     https://orgmode.org/manual/Feedback.html#Feedback

Your bug report will be posted to the Org mailing list.
------------------------------------------------------------------------
hi.  it appears, at least for R, with :colnames in its default setting
(nil, i believe), if there are multiple :var arguments on the
#+BEGIN_SRC line, colnames for an hline'd table will appear iff the :var
for that table appears on the #+BEGIN_SRC line *before* any :var for a
*non* hline'd table.

small example follows.  (this was run, and behaved similarly, on a more
standard R:
----
R version 3.4.4 (2018-03-15) -- "Someone to Lean On"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
----
)

cheers, Greg

>>>>>>>
#+name: a
| this | is   |
|------+------|
| now  | test |

#+name: e
| colnames |

#+BEGIN_SRC emacs-lisp
(require 'ob-R)
#+END_SRC

#+RESULTS:
: ob-R

#+BEGIN_SRC R :var a=a :var e=e :results output
print(colnames(a))
print(colnames(e))
#+END_SRC

#+RESULTS:
: [1] "this" "is"  
: [1] "V1"

#+BEGIN_SRC R :var e=e :var a=a :results output
print(colnames(a))
print(colnames(e))
#+END_SRC

#+RESULTS:
: [1] "V1" "V2"
: [1] "V1"
<<<<<<<<<<


Emacs  : GNU Emacs 26.1 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2018-09-07
Package: Org mode version 9.1.13 (release_9.1.13 @ /usr/local/share/emacs/site-lisp/org/)

current state:
==============
(setq
 org-src-mode-hook '(org-src-babel-configure-edit-buffer
                     org-src-mode-configure-edit-buffer)
 org-after-todo-state-change-hook '(org-clock-out-if-current)
 org-metadown-hook '(org-babel-pop-to-session-maybe)
 org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
 org-html-format-inlinetask-function 'org-html-format-inlinetask-default-function
 org-agenda-files '("~/work/meetings/2017/lido/lido2017.org"
                    "~/docs/mine/92anotes.org"
                    "~/work/math/gerrymandr/gerrmandr.org"
                    "~/work/languages/turkish/translations/memduh-sevket-esendal/hayat-ne-tatli.org" "~/work/art.catalog/artcatalog.org" "~/work/languages/osmanlica/osmanlica.org" "~/work/trips/2014/ist2014/turkey.org" "~/work/trips/2014/ist2014/ist2014.org" "~/work/trips/2014/ist2014/istliving.org" "~/work/languages/turkish/2014/level1/grammar.org" "/home/minshall/docs/mine/org/finance.org" "/home/minshall/docs/mine/org/flagged.org" "/home/minshall/docs/mine/org/guesthouseremodel.org" "/home/minshall/docs/mine/org/healthinsurance.org" "/home/minshall/docs/mine/org/kronos.org" "/home/minshall/docs/mine/org/meetings.org" "/home/minshall/docs/mine/org/pages.org" "/home/minshall/docs/mine/org/reading.org" "/home/minshall/docs/mine/org/sbaloans.org" "/home/minshall/docs/mine/org/studentloans.org" "/home/minshall/docs/mine/org/sysnotes.org" "/home/minshall/docs/mine/org/travel.org" "/home/minshall/docs/mine/org/scotland2014.org" "/home/minshall/docs/mine/org/CONSTRUCTED")
 org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
 org-modules '(org-bbdb org-bibtex org-docview org-gnus org-info org-tempo
               org-jsinfo org-irc org-mew org-mhe org-rmail org-vm org-wl org-w3m
               org-drill)
 org-mode-hook '(#[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-show-block-all append
                    local]
                   5]
                 (lambda nil
                  (setcar org-emphasis-regexp-components
                   (concat (car org-emphasis-regexp-components) "[:alpha:]"))
                  (org-set-emph-re (quote org-emphasis-regexp-components)
                   org-emphasis-regexp-components)
                  )
                 flyspell-mode modi/highlight-confusing-chars
                 #[0 "\300\301\302\303\304$\207"
                   [add-hook change-major-mode-hook org-babel-show-result-all
                    append local]
                   5]
                 org-babel-result-hide-spec org-babel-hide-all-hashes)
 org-archive-hook '(org-attach-archive-delete-maybe)
 org-confirm-elisp-link-function 'yes-or-no-p
 org-agenda-before-write-hook '(org-agenda-add-entry-text)
 org-metaup-hook '(org-babel-load-in-session-maybe)
 org-bibtex-headline-format-function #[257 "\300\x01\236A\207" [:title] 3 "\n\n(fn ENTRY)"]
 org-latex-format-drawer-function #[514 "\207" [] 3 "\n\n(fn _ CONTENTS)"]
 org-babel-pre-tangle-hook '(save-buffer)
 org-file-apps '((auto-mode . emacs) ("\\.mm\\'" . default)
                 ("\\.x?html?\\'" . default) ("\\.pdf\\'" . "xpdf %s"))
 org-tab-first-hook '(org-babel-hide-result-toggle-maybe
                      org-babel-header-arg-expand)
 org-babel-load-languages '((emacs-lisp . t) (R . t) (asymptote . t) (ditaa . t)
                            (awk . t) (python . t) (C . t) (latex . t) (org . t)
                            (scheme . t) (octave . t) (shell . t) (gnuplot . t)
                            (js . t))
 org-export-backends '(ascii beamer html latex)
 org-ascii-format-drawer-function #[771 "\x01\207" [] 4 "\n\n(fn NAME CONTENTS WIDTH)"]
 org-occur-hook '(org-first-headline-recenter)
 org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
                  org-cycle-show-empty-lines
                  org-optimize-window-after-visibility-change)
 org-speed-command-hook '(org-speed-command-activate
                          org-babel-speed-command-activate)
 org-babel-tangle-lang-exts '(("latex" . "tex") ("D" . "d") ("C++" . "cpp")
                              ("python" . "py") ("awk" . "awk")
                              ("asymptote" . "asy") ("processing" . "pde")
                              ("emacs-lisp" . "el") ("elisp" . "el"))
 org-confirm-shell-link-function 'yes-or-no-p
 org-link-parameters '(("id" :follow org-id-open)
                       ("w3m" :store org-w3m-store-link)
                       ("rmail" :follow org-rmail-open :store org-rmail-store-link)
                       ("mhe" :follow org-mhe-open :store org-mhe-store-link)
                       ("irc" :follow org-irc-visit :store org-irc-store-link)
                       ("info" :follow org-info-open :export org-info-export
                        :store org-info-store-link)
                       ("gnus" :follow org-gnus-open :store org-gnus-store-link)
                       ("docview" :follow org-docview-open :export
                        org-docview-export :store org-docview-store-link)
                       ("bibtex" :follow org-bibtex-open :store
                        org-bibtex-store-link)
                       ("bbdb" :follow org-bbdb-open :export org-bbdb-export
                        :complete org-bbdb-complete-link :store
                        org-bbdb-store-link)
                       ("file+sys") ("file+emacs")
                       ("doi" :follow org--open-doi-link)
                       ("elisp" :follow org--open-elisp-link)
                       ("file" :complete org-file-complete-link)
                       ("ftp" :follow
                        (lambda (path) (browse-url (concat "ftp:" path))))
                       ("help" :follow org--open-help-link)
                       ("http" :follow
                        (lambda (path) (browse-url (concat "http:" path))))
                       ("https" :follow
                        (lambda (path) (browse-url (concat "https:" path))))
                       ("mailto" :follow
                        (lambda (path) (browse-url (concat "mailto:" path))))
                       ("news" :follow
                        (lambda (path) (browse-url (concat "news:" path))))
                       ("shell" :follow org--open-shell-link))
 org-latex-format-headline-function 'org-latex-format-headline-default-function
 org-latex-format-inlinetask-function 'org-latex-format-inlinetask-default-function
 org-html-format-drawer-function #[514 "\207" [] 3 "\n\n(fn NAME CONTENTS)"]
 org-latex-classes '(("memoir" "\\documentclass{memoir}"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("beamer" "\\documentclass[presentation]{beamer}"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("article" "\\documentclass[11pt]{article}"
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}")
                      ("\\paragraph{%s}" . "\\paragraph*{%s}")
                      ("\\subparagraph{%s}" . "\\subparagraph*{%s}"))
                     ("report" "\\documentclass[11pt]{report}"
                      ("\\part{%s}" . "\\part*{%s}")
                      ("\\chapter{%s}" . "\\chapter*{%s}")
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     ("book" "\\documentclass[11pt]{book}"
                      ("\\part{%s}" . "\\part*{%s}")
                      ("\\chapter{%s}" . "\\chapter*{%s}")
                      ("\\section{%s}" . "\\section*{%s}")
                      ("\\subsection{%s}" . "\\subsection*{%s}")
                      ("\\subsubsection{%s}" . "\\subsubsection*{%s}"))
                     )
 org-html-format-headline-function 'org-html-format-headline-default-function
 org-directory "~/docs/mine/org"
 )

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2018-10-29 14:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-10-29 14:11 Bug: (R?) colnames sometimes appear, sometimes don't [9.1.13 (release_9.1.13 @ /usr/local/share/emacs/site-lisp/org/)] Greg Minshall

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).