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
FWIW, I paste below a possible change to the warnings generating part of the
do_matrix function in R/src/main/array.c that adds the kind of warning that
Abby is asking for, and that IMHO would more often help users find bugs in
their code than interfere with intended behaviour.
> matrix (1:6, n