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 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] [External] Re: What is a "retired"package?

2021-09-22 Thread Avi Gross via R-package-devel
Philosophy aside, albeit not uninteresting, I am wondering about the etiquette of developing a package and then years later dealing with how to have it replaced carefully. Do creators and maintainers have any obligation and especially when there is a large remaining embedded base of users. We may h

Re: [R-pkg-devel] Assigning a variable to global environment

2020-12-11 Thread Avi Gross via R-package-devel
Tiago, this may be a dumb question but what you are trying to do (below) sounds very similar to an existing function called attach() which many suggest has some dangers in use as you can overwrite or hide user variables or it can be eclipsed by later code: https://www.rdocumentation.org/package