Re: [Rd] sprintf("%d", integer(0)) aborts

2009-03-19 Thread William Dunlap
> -Original Message- > From: Prof Brian Ripley [mailto:rip...@stats.ox.ac.uk] > Sent: Thursday, March 19, 2009 3:34 AM > To: William Dunlap > Cc: r-devel@r-project.org > Subject: Re: [Rd] sprintf("%d", integer(0)) aborts > > On Wed, 18 Mar 2009, W

Re: [Rd] sprintf("%d", integer(0)) aborts

2009-03-19 Thread Prof Brian Ripley
On Wed, 18 Mar 2009, William Dunlap wrote: In R's sprintf() if any of the arguments has length 0 the function aborts. E.g., > sprintf("%d", integer(0)) Error in sprintf("%d", integer(0)) : zero-length argument > sprintf(character(), integer(0)) Error in sprintf(character(), integer(0))

[Rd] sprintf("%d", integer(0)) aborts

2009-03-18 Thread William Dunlap
In R's sprintf() if any of the arguments has length 0 the function aborts. E.g., > sprintf("%d", integer(0)) Error in sprintf("%d", integer(0)) : zero-length argument > sprintf(character(), integer(0)) Error in sprintf(character(), integer(0)) : 'fmt' is not a non-empty character