From: Greg Minshall <minshall@umich.edu>
To: emacs-orgmode@gnu.org
Subject: worg patch: R usage of :colnames for :results
Date: Sun, 26 Sep 2021 18:11:55 +0300 [thread overview]
Message-ID: <741538.1632669115@apollo2.minshall.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 371 bytes --]
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.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Add-mention-of-colnames-effect-on-results.patch --]
[-- Type: text/x-diff, Size: 1162 bytes --]
From e0978a33a70a885db9d3383621c6ccfa97e5519a Mon Sep 17 00:00:00 2001
From: Greg Minshall <minshall@umich.edu>
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
next reply other threads:[~2021-09-26 15:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-26 15:11 Greg Minshall [this message]
2021-09-26 15:17 ` worg patch: R usage of :colnames for :results Bastien
2021-09-26 18:17 ` Greg Minshall
2021-09-26 20:03 ` Bastien
2021-09-27 5:05 ` [PATCH] " Greg Minshall
2021-09-27 5:26 ` Bastien
2021-09-27 6:49 ` Greg Minshall
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=741538.1632669115@apollo2.minshall.org \
--to=minshall@umich.edu \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).