This may be of interest: http://www.ijs.si/software/snprintf/ It looks like this version may well be more complete and conform the standards than the version that comes with R. BTW: I am currently patching unix/sys_std.c and modules/gtkconsole.c such that they don't store lines in the history that are identical to the previous line. Is there any interest in posting those patches here? RenE Bertin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "RenE" == RenE J V Bertin <rjvbertin@hotmail.com> writes:RenE> This may be of interest: RenE> http://www.ijs.si/software/snprintf/ RenE> It looks like this version may well be more complete RenE> and conform the standards than the version that comes with R. I haven't looked at either. What makes you think that the above be more standard? RenE> BTW: I am currently patching unix/sys_std.c and RenE> modules/gtkconsole.c such that they don't store lines RenE> in the history that are identical to the previous RenE> line. Is there any interest in posting those patches here? only if they might be incorporated in to a future version of R :--)) If the diff are relatively small and look good, the chances are relatively high the inc. will happen. I think this is a very useful idea -- though I probably will almost never make use of it, using ESS 99.5% of the time. Martin -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>From: Martin Maechler <maechler@stat.math.ethz.ch> >Reply-To: Martin Maechler <maechler@stat.math.ethz.ch> >To: "RenE J.V. Bertin" <rjvbertin@hotmail.com> >CC: r-devel@r-project.org >Subject: Re: portable snprintf implementation >Date: Wed, 10 Jul 2002 14:35:52 +0200> RenE> It looks like this version may well be more complete > RenE> and conform the standards than the version that comes with R. > >I haven't looked at either. What makes you think that the above be >more standard?The version included in R has been "grafted" from a project called 'wget', as far as I have read the comments in vsnprintf.c . Those same comments also mention a list of issues, that may have been solved, but maybe not -- I haven't tried. It is quite possible that it works well enough as far as R is concerned. The version on the link I sent works well too (I use it under Irix), and according to its website, it complies to all standards that apply. And it *is* free: one can choose between the Artistic License and the GPL.>only if they might be incorporated in to a future version of R :--) >If the diff are relatively small and look good, the chances are >relatively high the inc. will happen.My intention is indeed they *be* incorporated in a future version -- that would save me from having to apply the same patch each time R bumps a version digit >8- It sure looks the diffs are going to be small, since (fortunately) adding to the history is done in a single place. The terminal version works, the gtk version still needs some polishing that I hope to finish today. What do you mean with looking good?>I think this is a very useful idea -- though I probably will >almost never make use of it, using ESS 99.5% of the time.You'll see just how useful when you do have to step down to the terminal or gtk based version :) RenE _________________________________________________________________ -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Tue, 9 Jul 2002, RenE J.V. Bertin wrote:> This may be of interest: > > http://www.ijs.si/software/snprintf/ > > It looks like this version may well be more complete and conform the standards than the version that comes with R.Maybe, but what is in R does what R requires, and has been thoroughly tested. I don't propose to do the work again! -- Brian D. Ripley, ripley@stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-devel-request@stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._