From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Minshall Subject: Bug: (R?) colnames sometimes appear, sometimes don't [9.1.13 (release_9.1.13 @ /usr/local/share/emacs/site-lisp/org/)] Date: Mon, 29 Oct 2018 07:11:47 -0700 Message-ID: <9869.1540822307@minshall-apollo.minshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42830) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gH8H4-0007dL-1n for emacs-orgmode@gnu.org; Mon, 29 Oct 2018 10:12:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gH8H0-0006x1-QO for emacs-orgmode@gnu.org; Mon, 29 Oct 2018 10:12:10 -0400 Received: from hiwela.pair.com ([209.68.5.201]:57275) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gH8H0-0006bN-J4 for emacs-orgmode@gnu.org; Mon, 29 Oct 2018 10:12:06 -0400 Received: from hiwela.pair.com (localhost [127.0.0.1]) by hiwela.pair.com (Postfix) with ESMTP id 8A0939804A3 for ; Mon, 29 Oct 2018 10:11:50 -0400 (EDT) Received: from minshall-entroware-apollo.cliq.com (ip68-4-5-224.pv.oc.cox.net [68.4.5.224]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by hiwela.pair.com (Postfix) with ESMTPSA id 6E25F8F082E for ; Mon, 29 Oct 2018 10:11:50 -0400 (EDT) Received: from minshall-apollo.minshall.org (localhost [127.0.0.1]) by minshall-entroware-apollo.cliq.com (Postfix) with ESMTP id 02C296C0296 for ; Mon, 29 Oct 2018 07:11:48 -0700 (PDT) Content-ID: <9868.1540822307.1@minshall-apollo.minshall.org> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org 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=3Da :var e=3De :results output print(colnames(a)) print(colnames(e)) #+END_SRC #+RESULTS: : [1] "this" "is" = : [1] "V1" #+BEGIN_SRC R :var e=3De :var a=3Da :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: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D (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-f= unction org-agenda-files '("~/work/meetings/2017/lido/lido2017.org" "~/docs/mine/92anotes.org" "~/work/math/gerrymandr/gerrmandr.org" "~/work/languages/turkish/translations/memduh-sevket-e= sendal/hayat-ne-tatli.org" "~/work/art.catalog/artcatalog.org" "~/work/lan= guages/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/do= cs/mine/org/finance.org" "/home/minshall/docs/mine/org/flagged.org" "/home= /minshall/docs/mine/org/guesthouseremodel.org" "/home/minshall/docs/mine/o= rg/healthinsurance.org" "/home/minshall/docs/mine/org/kronos.org" "/home/m= inshall/docs/mine/org/meetings.org" "/home/minshall/docs/mine/org/pages.or= g" "/home/minshall/docs/mine/org/reading.org" "/home/minshall/docs/mine/or= g/sbaloans.org" "/home/minshall/docs/mine/org/studentloans.org" "/home/min= shall/docs/mine/org/sysnotes.org" "/home/minshall/docs/mine/org/travel.org= " "/home/minshall/docs/mine/org/scotland2014.org" "/home/minshall/docs/min= e/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 app= end 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=01\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) (dita= a . t) (awk . t) (python . t) (C . t) (latex . t) (or= g . t) (scheme . t) (octave . t) (shell . t) (gnuplot= . t) (js . t)) org-export-backends '(ascii beamer html latex) org-ascii-format-drawer-function #[771 "=01\207" [] 4 "\n\n(fn NAME CONTE= NTS 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-st= ore-link) ("mhe" :follow org-mhe-open :store org-mhe-store-li= nk) ("irc" :follow org-irc-visit :store org-irc-store-l= ink) ("info" :follow org-info-open :export org-info-expo= rt :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-expo= rt :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-fun= ction 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-funct= ion org-directory "~/docs/mine/org" )