emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* worg patch: R usage of :colnames for :results
@ 2021-09-26 15:11 Greg Minshall
  2021-09-26 15:17 ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Greg Minshall @ 2021-09-26 15:11 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: worg patch: R usage of :colnames for :results
  2021-09-26 15:11 worg patch: R usage of :colnames for :results Greg Minshall
@ 2021-09-26 15:17 ` Bastien
  2021-09-26 18:17   ` Greg Minshall
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2021-09-26 15:17 UTC (permalink / raw)
  To: Greg Minshall; +Cc: emacs-orgmode

Hi Greg,

Greg Minshall <minshall@umich.edu> writes:

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

Applied againt worg, thanks!

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

You simply need to add [PATCH] to the subject of your email, it will
be listed in https://updates.orgmode.org.  You can also manually add
X-Woof-Patch: yes -- see https://github.com/bzg/woof for details.

HTH,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: worg patch: R usage of :colnames for :results
  2021-09-26 15:17 ` Bastien
@ 2021-09-26 18:17   ` Greg Minshall
  2021-09-26 20:03     ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Greg Minshall @ 2021-09-26 18:17 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien,


> Applied againt worg, thanks!

thanks.

> You simply need to add [PATCH] to the subject of your email, it will
> be listed in https://updates.orgmode.org.  You can also manually add
> X-Woof-Patch: yes -- see https://github.com/bzg/woof for details.

maybe some comments/links at https://orgmode.org/contribute.html ?  i'm
not sure where those sources live, or i'd X-Woof a [PATCH].  :)

cheers, Greg


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: worg patch: R usage of :colnames for :results
  2021-09-26 18:17   ` Greg Minshall
@ 2021-09-26 20:03     ` Bastien
  2021-09-27  5:05       ` [PATCH] " Greg Minshall
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2021-09-26 20:03 UTC (permalink / raw)
  To: Greg Minshall; +Cc: emacs-orgmode

Hi Greg,

Greg Minshall <minshall@umich.edu> writes:

> maybe some comments/links at https://orgmode.org/contribute.html ?  

I'm not sure what you mean, can you elaborate?

> i'm not sure where those sources live, or i'd X-Woof a [PATCH].  :)

The orgmode.org website is at https://git.sr.ht/~bzg/orgweb which you
can clone with ~$ git clone https://git.sr.ht/~bzg/orgweb

HTH,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [PATCH] Re: worg patch: R usage of :colnames for :results
  2021-09-26 20:03     ` Bastien
@ 2021-09-27  5:05       ` Greg Minshall
  2021-09-27  5:26         ` Bastien
  0 siblings, 1 reply; 7+ messages in thread
From: Greg Minshall @ 2021-09-27  5:05 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 188 bytes --]

Bastien,

> I'm not sure what you mean, can you elaborate?

if a picture is worth a thousand words, what's a patch worth?  :)

thanks for the pointer to the orgweb sources.

cheers, Greg


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-contribute.html-Suggest-PATCH-on-Subject-line-when-s.patch --]
[-- Type: text/x-diff, Size: 1500 bytes --]

From 2594db749de7ae5ec9400b4397b0ba21d9526c9b Mon Sep 17 00:00:00 2001
From: Greg Minshall <minshall@umich.edu>
Date: Mon, 27 Sep 2021 08:03:42 +0300
Subject: [PATCH] contribute.html: Suggest '[PATCH]' on Subject: line when
 submitting patches

contribute.org: Modify text.

Also pointer to X-Woof-Patch as an alternative.
---
 contribute.org | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/contribute.org b/contribute.org
index 41ef346..bad79e4 100644
--- a/contribute.org
+++ b/contribute.org
@@ -120,10 +120,13 @@ More formally,
 
 ** Sending patches
 
-Use ~git diff~ or ~git format-patch~ to generate the patch files and then
-include them in an email to [[mailto:emacs-orgmode@gnu.org][emacs-orgmode@gnu.org]] describing what
+Use ~git diff~ or ~git format-patch~ to generate the patch files and
+then include them in an email to [[mailto:emacs-orgmode@gnu.org][emacs-orgmode@gnu.org]] describing what
 you've done.  If you have configured git to use [[https://git-send-email.io/][send-email]], then you
-can use that.
+can use that.  If you are able to add the phrase =[PATCH]= to the
+beginning of the Subject: line of your e-mail, that will help to
+manage your submission.[fn:: Adding a [[https://github.com/bzg/woof]["X-Woof-Patch"]] header to your
+e-mail can also accomplish this.]
 
 If your mail has not appeared on [[https://list.orgmode.org/][the list]] after waiting at least 15
 minutes, it may have been flagged as spam by the robot email
-- 
2.32.0


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Re: worg patch: R usage of :colnames for :results
  2021-09-27  5:05       ` [PATCH] " Greg Minshall
@ 2021-09-27  5:26         ` Bastien
  2021-09-27  6:49           ` Greg Minshall
  0 siblings, 1 reply; 7+ messages in thread
From: Bastien @ 2021-09-27  5:26 UTC (permalink / raw)
  To: Greg Minshall; +Cc: emacs-orgmode

Hi Greg,

Greg Minshall <minshall@umich.edu> writes:

> if a picture is worth a thousand words, what's a patch worth?  :)

A lot :)

Applied, thanks, but I removed the reference to X-Woof-Patch here.

Also, this contribute.org page is somewhat redundant with the one 
that serves as a reference for a long time on Worg, we shall think
on merging them -- I'll add this to my todo list.

Best,

-- 
 Bastien


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [PATCH] Re: worg patch: R usage of :colnames for :results
  2021-09-27  5:26         ` Bastien
@ 2021-09-27  6:49           ` Greg Minshall
  0 siblings, 0 replies; 7+ messages in thread
From: Greg Minshall @ 2021-09-27  6:49 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Bastien,

> Applied, thanks, but I removed the reference to X-Woof-Patch here.

thanks.  yes, makes sense -- i was hesitant to mention it, on a
"beginner" page.

cheers, Greg


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2021-09-27  6:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-26 15:11 worg patch: R usage of :colnames for :results Greg Minshall
2021-09-26 15:17 ` 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

Code repositories for project(s) associated with this 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).