e does not require any default
expressions.
-Original Message-
From: Martin Maechler
Sent: 08 November 2021 15:44
To: Georgi Boshnakov
Cc: Andrew Simmons ; Dario Strbenac
; r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] match.arg With S4 Methods and Missing Inputs
>&g
this is seen to be true (I don't have time for checking just now),
I think it's something we really *should* add to one or more of
the related help pages.
Martin Maechler
>
> Sent: Monday, November 8, 2021 5:37:18 AM
> To: Dario St
ka.ms/AAb9ysg>
From: R-package-devel on behalf of
Andrew Simmons
Sent: Monday, November 8, 2021 5:37:18 AM
To: Dario Strbenac
Cc: r-package-devel@r-project.org
Subject: Re: [R-pkg-devel] match.arg With S4 Methods and Missing Inputs
>From the line `function(A, B) standardGeneric("
>From the line `function(A, B) standardGeneric("SetOfParams")`, A and B will
always have default values of R_MissingArg
Providing default values within the methods does nothing since A and B have
already been initialized before arriving at the method.
You could do something like:
if (missing(A))