Re: [R-pkg-devel] How to update the email address of a package maintainer

2021-11-08 Thread Balasubramanian Narasimhan
Thank you, Simon! On 11/8/21 5:57 PM, Simon Urbanek wrote: From CRAN Policy: Explain any change in the maintainer’s email address and if possible send confirmation from the previous address (by a separate email to cran-submissi...@r-project.org) or explain why it is not possible Cheers,

Re: [R-pkg-devel] How to update the email address of a package maintainer

2021-11-08 Thread Simon Urbanek
>From CRAN Policy: > Explain any change in the maintainer’s email address and if possible send > confirmation from the previous address (by a separate email to > cran-submissi...@r-project.org) or explain why it is not possible > Cheers, Simon _

[R-pkg-devel] How to update the email address of a package maintainer

2021-11-08 Thread Balasubramanian Narasimhan
Is there any way at all to update the email address of the maintainer of a package? (The address of the maintainer of CVXR which is in need of an update for the new SCS solver has changed from  @stanford.edu to @alumni.stanford.edu, with no access to the former.) -Naras __

Re: [R-pkg-devel] R feature suggestion: Duplicated function arguments check

2021-11-08 Thread J C Nash
I think this is similar in nature (though not detail) to an issue raised on StackOverflow where the OP used "x" in dot args and it clashed with the "x" in a numDeriv call in my optimx package. I've got a very early fix (I think), though moderators on StackOverflow were unpleasant enough to delete

Re: [R-pkg-devel] R feature suggestion: Duplicated function arguments check

2021-11-08 Thread Duncan Murdoch
On 08/11/2021 11:48 a.m., Avi Gross via R-package-devel wrote: Vincent, But is the second being ignored the right result? In many programming situations, subsequent assignments replace earlier ones. And consider the way R allows something like this: func(a=2, b=3, a=4, c=a*b) Is it clear how

Re: [R-pkg-devel] R feature suggestion: Duplicated function arguments check

2021-11-08 Thread Avi Gross via R-package-devel
Vincent, But is the second being ignored the right result? In many programming situations, subsequent assignments replace earlier ones. And consider the way R allows something like this: func(a=2, b=3, a=4, c=a*b) Is it clear how to initialize the default for c as it depends on one value of "a"

Re: [R-pkg-devel] R feature suggestion: Duplicated function arguments check

2021-11-08 Thread Vincent van Hees
Thanks Duncan, I have tried to make a minimalistic example: myfun = function(...) { input = list(...) mysum = function(A = c(), B= c()) { return(A+B) } if ("A" %in% names(input) & "B" %in% names(input)) { print(mysum(A = input$A, B = input$B)) } } # test: > myfun(A = 1, B = 2, B

Re: [R-pkg-devel] R feature suggestion: Duplicated function arguments check

2021-11-08 Thread Avi Gross via R-package-devel
Duncan, This may not be the place to discuss this so I will be brief. The question is whether it should be some kind of error to call a function with two named arguments that are the same. I can think of a perhaps valid use when a function expects to take the first few arguments for personal use

Re: [R-pkg-devel] match.arg With S4 Methods and Missing Inputs

2021-11-08 Thread Georgi Boshnakov
It turns out that it is not difficult to find, the excerpt below is from help(setMethod). Maybe mentioning this in help(setGeneric) would be helpful, as well. Georgi Boshnakov === Method definitions can have default expressions for arguments, but only if the generic function must hav

Re: [R-pkg-devel] R feature suggestion: Duplicated function arguments check

2021-11-08 Thread Duncan Murdoch
On 08/11/2021 10:29 a.m., Vincent van Hees wrote: Not sure if this is the best place to post this message, as it is more of a suggestion than a question. When an R function accepts more than a handful of arguments there is the risk that users accidentally provide arguments twice, e.g myfun(A=1,

Re: [R-pkg-devel] match.arg With S4 Methods and Missing Inputs

2021-11-08 Thread Martin Maechler
> Georgi Boshnakov > on Mon, 8 Nov 2021 09:46:00 + writes: > You need to define the generic with a default value for > this parameter. Methods can then have a different default > value for it. > I remember reading this in S4's documentation but don't remember wher

[R-pkg-devel] R feature suggestion: Duplicated function arguments check

2021-11-08 Thread Vincent van Hees
Not sure if this is the best place to post this message, as it is more of a suggestion than a question. When an R function accepts more than a handful of arguments there is the risk that users accidentally provide arguments twice, e.g myfun(A=1, B=2, C=4, D=5, A=7), and if those two values are not

Re: [R-pkg-devel] match.arg With S4 Methods and Missing Inputs

2021-11-08 Thread Georgi Boshnakov
You need to define the generic with a default value for this parameter. Methods can then have a different default value for it. I remember reading this in S4's documentation but don't remember where. Georgi Boshnakov Get Outlook for Android _