[Rd] `mode`

Martin Maechler m@ech|er @end|ng |rom @t@t@m@th@ethz@ch
Tue May 18 09:24:01 CEST 2021


>>>>> Dmichael Parrish via R-devel 
>>>>>     on Tue, 18 May 2021 02:05:04 +0000 (UTC) writes:

    > Hello, Kindly revise the documentation for `mode` to
    > reflect foo <- function () {} typeof(foo) # [1] "closure"
    > mode(foo)# [1] "function"


    > `help(mode)` states: Modes have the same set of names as
    > types (see typeof) except that

    >     types "integer" and "double" are returned as
    > "numeric".

    >     types "special" and "builtin" are returned as
    > "function".

    >     type "symbol" is called mode "name".

    >     type "language" is returned as "(" or "call".


Indeed, that help file is missing  "closure", ...
amazingly, for all the history of R (of 25+ years).

Thank you!

I've already fixed this in the sources' trunk (svn rev 80321) a
minute ago; of course this will not make it anymore into R 4.1.0
but in its "patched" version, and then 4.1.1 and one.

With thankful regards,
Martin

--
Martin Maechler
ETH Zurich  and  R Core team


    > I am presently reading `help(mode)` on:

    > write.dcf(R.Version()) # platform: x86_64-w64-mingw32 #
    > arch: x86_64 # os: mingw32 # system: x86_64, mingw32 #
    > status: # major: 4 # minor: 0.3 # year: 2020 # month: 10 #
    > day: 10 # svn rev: 79318 # language: R # version.string: R
    > version 4.0.3 (2020-10-10) # nickname: Bunny-Wunnies Freak
    > Out

 
    > __________ Hmo < 0.1 L tanh kd ---Miche, 1951 / I have
    > placed the sand for the bound of the sea... and though the
    > waves thereof toss themselves... they cannot pass over it
    > ---YHWH, ca. 600 B.C. (Jer. 5:22)



More information about the R-devel mailing list