[Rd] `mode`

2021-05-17 Thread Dmichael Parrish via R-devel
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".

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)
[[alternative HTML version deleted]]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] base R pipe documentation

2021-05-17 Thread peter dalgaard
OK, zapped the \note for 4-1-branch (for now). This close to release, changes 
have to be very small and safe to be allowed in, so anything more than that 
will have to wait for a later version.

- Peter

> On 17 May 2021, at 19:20 , Ben Bolker  wrote:
> 
>  As of right now, as far as I can tell, the documentation for the new native 
> |> pipe still says that it's experimental.
> 
> https://github.com/wch/r-source/blob/trunk/src/library/base/man/pipeOp.Rd#L45
> 
> *Pipe support is experimental and may change prior to release.*
> 
> Also still in the 4-1 branch:
> 
> https://github.com/wch/r-source/blob/R-4-1-branch/src/library/base/man/pipeOp.Rd#L45
> 
>  (The corresponding comment in the NEWS file has been fixed in the last 24 
> hours, but hasn't propagated to the online/HTML version on the developer page 
> yet ...)
> 
>  As a "wish list" item, if there are any particularly salient/important  
> differences between the |> pipe and the %>% magrittr pipe, it would be great 
> to have those documented (I know that documenting the difference between a 
> base-R operator and the one that's implemented in a non-Recommended package 
> is a little weird, but it would be helpful in this case ...)  I know I could 
> go back to the mailing list discussion at 
> https://hypatia.math.ethz.ch/pipermail/r-devel/2020-December/080173.html and 
> try to figure it out for myself ...
> 
>  cheers
>   Ben Bolker
> 
> __
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


[Rd] base R pipe documentation

2021-05-17 Thread Ben Bolker
  As of right now, as far as I can tell, the documentation for the new 
native |> pipe still says that it's experimental.


https://github.com/wch/r-source/blob/trunk/src/library/base/man/pipeOp.Rd#L45

 *Pipe support is experimental and may change prior to release.*

Also still in the 4-1 branch:

https://github.com/wch/r-source/blob/R-4-1-branch/src/library/base/man/pipeOp.Rd#L45

  (The corresponding comment in the NEWS file has been fixed in the 
last 24 hours, but hasn't propagated to the online/HTML version on the 
developer page yet ...)


  As a "wish list" item, if there are any particularly 
salient/important  differences between the |> pipe and the %>% magrittr 
pipe, it would be great to have those documented (I know that 
documenting the difference between a base-R operator and the one that's 
implemented in a non-Recommended package is a little weird, but it would 
be helpful in this case ...)  I know I could go back to the mailing list 
discussion at 
https://hypatia.math.ethz.ch/pipermail/r-devel/2020-December/080173.html 
and try to figure it out for myself ...


  cheers
   Ben Bolker

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel