~G
>
> -Original Message-
> From: R-devel On Behalf Of Martin Maechler
> Sent: Friday, March 3, 2023 10:26 AM
> To: Gabriel Becker
> Cc: Antoine Fabri ; R-devel <
> r-devel@r-project.org>
> Subject: Re: [Rd] transform.data.frame() ignores unnamed arguments w
() ignores unnamed arguments when no
named argument is provided
>>>>> Gabriel Becker
>>>>> on Thu, 2 Mar 2023 14:37:18 -0800 writes:
> On Thu, Mar 2, 2023 at 2:02 PM Antoine Fabri
> wrote:
>> Thanks and good point about unspecified beh
For what it's worth I think the increased emphasis on classed
errors should help with this (i.e., it will be easier to filter out
errors you know are false positives/irrelevant for your use case).
On Fri, Mar 3, 2023 at 12:17 PM Antoine Fabri wrote:
>
> Let me expand a bit, I might have
Let me expand a bit, I might have expressed myself poorly.
If there is a good reason for a warning I want a warning, and because I
take them seriously I don't want my console cluttered with those that can
be avoided. I strongly believe we should strive to make our code silent,
and I like my
> Gabriel Becker
> on Thu, 2 Mar 2023 14:37:18 -0800 writes:
> On Thu, Mar 2, 2023 at 2:02 PM Antoine Fabri
> wrote:
>> Thanks and good point about unspecified behavior. The way
>> it behaves now (when it doesn't ignore) is more
>> consistent with data.frame()
On Thu, Mar 2, 2023 at 2:02 PM Antoine Fabri
wrote:
> Thanks and good point about unspecified behavior. The way it behaves now
> (when it doesn't ignore) is more consistent with data.frame() though so I
> prefer that to a "warn and ignore" behaviour:
>
> data.frame(a = 1, b = 2, 3)
>
> #> a b
Thanks and good point about unspecified behavior. The way it behaves now
(when it doesn't ignore) is more consistent with data.frame() though so I
prefer that to a "warn and ignore" behaviour:
data.frame(a = 1, b = 2, 3)
#> a b X3
#> 1 1 2 3
data.frame(a = 1, 2, 3)
#> a X2 X3
#> 1 1 2
Note that ?transform.data.frame says arguments need to be named, so you
are testing unspecified behaviour. I guess this falls in a similar
category as the note
If some of the values are not vectors of the appropriate length,
you deserve whatever you get!
Experiments for a related