On 2/22/21 11:34 AM, Duncan Murdoch wrote:
This is ugly, but I think it's legal, and it doesn't trigger a
warning: output unused parameters as zero-length strings:
msnx(T0, mask = '%1$.1f (SD=%2$.1f)%3$.0s%4$.0s')
Perhaps an example using %.0s could be included to show how to skip a
value.
This is ugly, but I think it's legal, and it doesn't trigger a warning:
output unused parameters as zero-length strings:
msnx(T0, mask = '%1$.1f (SD=%2$.1f)%3$.0s%4$.0s')
Perhaps an example using %.0s could be included to show how to skip a value.
Duncan Murdoch
On 22/02/2021 5:06 a.m., Tom
Dear Matthias,
On 2/6/21 2:11 PM, Matthias Gondan wrote:
Dear developers,
This is a follow-up from an earlier mail about warnings of unused arguments in
sprintf:
1. This should obviously raise an error (and it does):
sprintf('%i %i', 1)
Fehler in sprintf("%i %i", 1) : zu wenig Argumente [= to
Dear developers,
This is a follow-up from an earlier mail about warnings of unused arguments in
sprintf:
1. This should obviously raise an error (and it does):
sprintf('%i %i', 1)
Fehler in sprintf("%i %i", 1) : zu wenig Argumente [= too few arguments]
2. This should, in my opinion, raise a war
: 04.11.20 16:26 (GMT+01:00) An:
matthias-gondan , r-devel@r-project.org Betreff: Re:
[Rd] sprintf, check number of parameters
Dear Matthias,
On 11/4/20 4:01 PM, matthias-gondan
wrote:
Dear Tomas,
Thank you
chricht ----
> Von: Tomas Kalibera
> Datum: 04.11.20 15:43 (GMT+01:00)
> An: Matthias Gondan , r-devel@r-project.org
> Betreff: Re: [Rd] sprintf, check number of parameters
>
> Dear Matthias,
>
> thanks for the suggestion, R-devel now warns on unused arguments by
> fo
ted, thanks
again.Best regards,Matthias
Ursprüngliche Nachricht Von: Tomas Kalibera
Datum: 04.11.20 15:43 (GMT+01:00) An: Matthias
Gondan , r-devel@r-project.org Betreff: Re: [Rd]
sprintf, check number of parameters Dear Matthias,thanks for the suggestion,
R-devel now warns on unused ar
Dear Matthias,
thanks for the suggestion, R-devel now warns on unused arguments by
format (both numbered and un-numbered). It seems that the new warning is
useful, often it finds cases when arguments were accidentally passed to
sprintf but had been meant for a different function.
R allows co