ts.
>
>
> -Original Message-
> From: R-devel On Behalf Of Gabor
> Grothendieck
> Sent: Friday, January 15, 2021 7:28 AM
> To: Tierney, Luke
> Cc: R-devel@r-project.org
> Subject: Re: [Rd] brief update on the pipe operator in R-devel
>
> These are documen
1 7:28 AM
To: Tierney, Luke
Cc: R-devel@r-project.org
Subject: Re: [Rd] brief update on the pipe operator in R-devel
These are documented but still seem like serious deficiencies:
> f <- function(x, y) x + 10*y
> 3 |> x => f(x, x)
Error in f(x, x) : pipe placeholder may only appear
These are documented but still seem like serious deficiencies:
> f <- function(x, y) x + 10*y
> 3 |> x => f(x, x)
Error in f(x, x) : pipe placeholder may only appear once
> 3 |> x => f(1+x, 1)
Error in f(1 + x, 1) :
pipe placeholder must only appear as a top-level argument in the RHS call
Also
It turns out that allowing a bare function expression on the
right-hand side (RHS) of a pipe creates opportunities for confusion
and mistakes that are too risky. So we will be dropping support for
this from the pipe operator.
The case of a RHS call that wants to receive the LHS result in an
argum