From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id YPImMeuNUGGrjAAAgWs5BA (envelope-from ) for ; Sun, 26 Sep 2021 17:12:43 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id ENC7LOuNUGGNZwAA1q6Kng (envelope-from ) for ; Sun, 26 Sep 2021 15:12:43 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 184932E503 for ; Sun, 26 Sep 2021 17:12:43 +0200 (CEST) Received: from localhost ([::1]:34280 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mUVpa-0006hc-6f for larch@yhetil.org; Sun, 26 Sep 2021 11:12:42 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mUVp2-0006gp-OO for emacs-orgmode@gnu.org; Sun, 26 Sep 2021 11:12:08 -0400 Received: from relay-egress-host.us-east-2.a.mail.umich.edu ([18.216.144.57]:57726 helo=commutual-rhiannon.relay-egress.a.mail.umich.edu) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mUVox-0005c6-DE for emacs-orgmode@gnu.org; Sun, 26 Sep 2021 11:12:08 -0400 Received: from unopposed-tupilaq.authn-relay.a.mail.umich.edu (ip-10-0-73-207.us-east-2.compute.internal [10.0.73.207]) by commutual-rhiannon.relay-egress.a.mail.umich.edu with ESMTPS id 61508DC0.2C5BB.1059E35E.3267994; Sun, 26 Sep 2021 11:12:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2018-08-29; t=1632669119; bh=yzcNQsTPNCIUN8EkNoJE+rMD4AdaJQyCIZot6KQPMwg=; h=From:To:Subject:Date; b=qMchpueeVMI+Cu/bAbX0Jmf9KoiUe+VXhaMi9TjhEFtZ2a5vXeByebN70nWgie5AL s5i9x9GOblAPmW5pHvlp0LcKFCRsn7ixomKYTTfyMo6g9GaappviKan5iZ1nsgfOIS fmL6FvaUsbdypUFuAYUzCB1iitfH5KOiihqGb0I3uYTsOAc41CiXv1nDek2vie+JBF ZxRFjIRntS2WMrHMCdJyzLMIpMvf+Jfrc069chvgM+gQ9GpxOtDN7BSKwnq8wVcQ+m yRFr/aUa2ajfzsswF/1Yv/8ksnXZWcsmpU4UB916eYqnhI5cMxtKdQpfQMVFji8wBE WJqVoaRqtrC0A== Received: from localhost (Mismatch [95.8.195.9]) by unopposed-tupilaq.authn-relay.a.mail.umich.edu with ESMTPSA id 61508DBF.B295.2BF93203.2190628; Sun, 26 Sep 2021 11:11:59 -0400 From: Greg Minshall To: emacs-orgmode@gnu.org Subject: worg patch: R usage of :colnames for :results X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.2 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Date: Sun, 26 Sep 2021 18:11:55 +0300 Message-ID: <741538.1632669115@apollo2.minshall.org> Received-SPF: pass client-ip=18.216.144.57; envelope-from=minshall@umich.edu; helo=commutual-rhiannon.relay-egress.a.mail.umich.edu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, T_SPF_TEMPERROR=0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1632669163; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=yzcNQsTPNCIUN8EkNoJE+rMD4AdaJQyCIZot6KQPMwg=; b=MhuE4tEk0xcE3JwhvR9Y1H7VX0SLxPHkLE/HnHiDzJjDBuUN/Ow3iYHvlKoZvYMrwi1IE+ I0UoERVlU7Pnf2RnoEmGeIjf9MmuMTMcw5ddvfpgh9lIt/NrF3Ohe/bqtipIq/PM65OUQg i0vOxGZcrouU8CWHRst/TsTOfkSF409SXLLSvI9c3y4NRiCLZwVVltA84tXUwZOvq+1lww KolgGscQfzBjAo0JmtigKXJU2D5evq5H+5fQe38D4Qa9zpmnxRoWG5GGDG1xIJ+rBmVvF1 HnXLXpcqwg1+zjAMzX7I+7nO/zme9LnuamIDbdb6stLlbKc8w3B+vVYmBaBD3A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1632669163; a=rsa-sha256; cv=none; b=IypPCdcOysg+K/fWIMsANqL/Ki80T2cZHS3kuOuhRqUgtaJai2BEChE+4iTxZkLrndvocg MeADu4God7uXsXQvAYrap67JXNFM6P0+ZOFvsHlZ/yJ9O53L3hing+OKGZ61QHajksTvU5 Mnt4flCe/CbVZfgtARuc3lpG2lA+BuP2bikaCVtFD58VudU7S24q/xAHRMC4u1E87wq10l E/C/Sdk55YZTgCbYUuQgVJdTN/OLIUwzi3wGJM1+AcxUTqqmfohx1gDPymeNvArnQ4OrC5 nDMh4JRJoDWKFuXKJlsOFuhq8Ybi7SfxzsxOVjsut8k+/SmQmZBt2usFtLmftQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=qMchpuee; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.09 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=umich.edu header.s=relay-2018-08-29 header.b=qMchpuee; dmarc=pass (policy=none) header.from=umich.edu; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 184932E503 X-Spam-Score: -3.09 X-Migadu-Scanner: scn0.migadu.com X-TUID: D09ub4UomunD --=-=-= Content-Type: text/plain hi. i occasionally need to look up how to get header lines on tables resulting from an evaluation of an R source block. the answer is =:colnames yes=. here's a patch that minimally documents that. cheers, Greg ps -- i have some vague memory i'm supposed to hack in a "woof" header. but, it's not mentioned on https://orgmode.org/contribute.html so i've lazily not. --=-=-= Content-Type: text/x-diff Content-Disposition: attachment; filename=0001-Add-mention-of-colnames-effect-on-results.patch >From e0978a33a70a885db9d3383621c6ccfa97e5519a Mon Sep 17 00:00:00 2001 From: Greg Minshall Date: Sun, 26 Sep 2021 17:50:01 +0300 Subject: [PATCH] Add mention of :colnames effect on :results org-contrib/babel/languages/ob-doc-R.org: added paragraph about effect of `:colnames' on output. --- org-contrib/babel/languages/ob-doc-R.org | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/org-contrib/babel/languages/ob-doc-R.org b/org-contrib/babel/languages/ob-doc-R.org index 79d79bf2..16ee2ba6 100644 --- a/org-contrib/babel/languages/ob-doc-R.org +++ b/org-contrib/babel/languages/ob-doc-R.org @@ -138,6 +138,10 @@ both 32bit and 64bit binaries. The above path points to the 32bit paths; for There are no R-specific /default/ header arguments. +The =:colnames= header argument is used to specify that both *input* +tables (via a =:var= header argument), and output tables (via +=:results=) (should) have headers. + If a =:file filename.ext= header argument is provided to an R source block, then the output from the source block will go to the named file. What that output is depends on the value of the =:results= -- 2.32.0 --=-=-=--