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"
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
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
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