Skip to content
Prev 15165 / 63424 Next

sprintf - was formatC with illegal input crashes Rgui (PR#7686)

Dear Prof. Ripley,

Would it be possible to make sprintf accept vector arguments?
I.e. allow expressions like
   sprintf("%04d", 1:3)
to produce something like what currently needs to be done via
   sapply(1:3, function(i) sprintf("%04d",i))

   Best wishes
   Wolfgang
-------------------------------------
Wolfgang Huber
European Bioinformatics Institute
European Molecular Biology Laboratory
Cambridge CB10 1SD
England
Phone: +44 1223 494642
Fax:   +44 1223 494486
Http:  www.ebi.ac.uk/huber
-------------------------------------
Prof Brian Ripley wrote: