Re: [Rd] sprintf, check number of parameters

2021-02-06 Thread Matthias Gondan
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

Re: [Rd] surprised matrix (1:256, 8, 8) doesn't cause error/warning

2021-02-06 Thread Wolfgang Huber
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