[Rd] sprintf, check number of parameters
Matthias Gondan
m@tth|@@-gond@n @end|ng |rom gmx@de
Sun Sep 20 13:03:59 CEST 2020
Dear R developers,
I am wondering if this should raise an error or a warning.
> sprintf('%.f, %.f', 1, 2, 3)
[1] "1, 2"
I am aware that R has „numbered“ sprintf arguments (sprintf('%1$.f', …), and in that case, omissing of specific arguments may be intended. But in the usual syntax, omission of an argument is probably a mistake.
Thank you for your consideration.
Best wishes,
Matthias
[[alternative HTML version deleted]]
More information about the R-devel
mailing list