From maechler at stat.math.ethz.ch  Wed Sep 21 09:50:33 2016
From: maechler at stat.math.ethz.ch (Martin Maechler)
Date: Wed, 21 Sep 2016 09:50:33 +0200
Subject: [Rd] Undocumented 'use.names' argument to c()
In-Reply-To: <D28561FA-195C-4342-BB0B-175473288C3A@comcast.net>
References: <CABz6aZeFACz08xo8qXpSshDJDfwJpDt5kzLzbVY=gS14UUBEdQ@mail.gmail.com>
	<D28561FA-195C-4342-BB0B-175473288C3A@comcast.net>
Message-ID: <22498.15305.131081.171552@stat.math.ethz.ch>

>>>>> David Winsemius <dwinsemius at comcast.net>
>>>>>     on Tue, 20 Sep 2016 23:46:48 -0700 writes:

    >> On Sep 20, 2016, at 7:18 PM, Karl Millar via R-devel <r-devel at r-project.org> wrote:
    >> 
    >> 'c' has an undocumented 'use.names' argument.  I'm not sure if this is
    >> a documentation or implementation bug.

    > It came up on stackoverflow a couple of years ago:

    > http://stackoverflow.com/questions/24815572/why-does-function-c-accept-an-undocumented-argument/24815653#24815653

    > At the time it appeared to me to be a documentation lag.

Thank you, Karl and David,
yes it is a documentation glitch ... and a bit more:  Experts know that
print()ing of primitive functions is, eehm, "special".

I've committed a change to R-devel ... (with the intent to port
to R-patched).

Martin

    >> 
    >>> c(a = 1)
    >> a
    >> 1
    >>> c(a = 1, use.names = F)
    >> [1] 1
    >> 
    >> Karl



[Rd] Undocumented 'use.names' argument to c()
Martin Maechler