From m@ech|er @end|ng |rom @t@t@m@th@ethz@ch  Fri Jul 10 09:51:57 2020
From: m@ech|er @end|ng |rom @t@t@m@th@ethz@ch (Martin Maechler)
Date: Fri, 10 Jul 2020 09:51:57 +0200
Subject: [Rd] lapply and vapply Primitive Documentation
In-Reply-To: <CAAat6s6ruojRSRdjN_OAzGwUFcH8XaB6sQGuZRL6jTT-fs0dDA@mail.gmail.com>
References: <CAAat6s6ruojRSRdjN_OAzGwUFcH8XaB6sQGuZRL6jTT-fs0dDA@mail.gmail.com>
Message-ID: <24328.7709.465307.799026@stat.math.ethz.ch>

>>>>> Cole Miller 
>>>>>     on Thu, 9 Jul 2020 20:38:10 -0400 writes:

    > The documentation of ?lapply includes:
    >> lapply and vapply are primitive functions.

    > However, both evaluate to FALSE in `is.primitive()`:

    >     is.primitive(vapply) #FALSE

    >     is.primitive(lapply) #FALSE

    > It appears that they are not primitives and that the
    > documentation might be outdated. Thank you for your time
    > and work.

Thank you, Cole.
Indeed, they were primitive originally (but e.g. lapply() seems
to have become .Internal with
   r7885 | ripley | 2000-01-31 08:58:59 +0100 
i.e. about 4 weeks *before* release of R 1.0.0

Changes made to both 'R-devel' and 'R-patched'.
Martin


    > Cole Miller

    > P.S. During research, my favorite `help()` is
    > `?.Internal()`: "Only true R wizards should even consider
    > using this function..." Thanks again!

;-)



[Rd] lapply and vapply Primitive Documentation
Martin Maechler