. Whoever
designed the interface either didn't worry about 8-bit characters
or had chars that were unsigned by default.
It doesn't look like any of the isspace calls in R do
this double casting.
Bill Dunlap
TIBCO Software Inc - Spotfire Division
wdunlap tibco.com =20
-Original Message-
From
Dunlap
TIBCO Software Inc - Spotfire Division
wdunlap tibco.com=20
=20
The following code will generate the error:
x =3D runif(200)
b0 =3D c(rep(0,100),runif(100))
b1 =3D 1
fac - as.factor(rep(c(0,1), each=3D100))
y =3D b0+b1*x+rnorm(200,sd=3D0.05)
nls(y~b0[fac]+b1*x, start=3Dlist(b0=3Dc(1,1),b1
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Prof Brian Ripley
Sent: Friday, November 14, 2008 2:25 AM
To: Duncan Murdoch
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];=20
[EMAIL PROTECTED]
Subject: Re: [Rd] (PR#13283) R crashes on sprintf with bad=20
format specification
=20
[i] 0L) {
82 rowsi - attr(xi, row.names)
83 if (!(rowsi[[1L]] %in% ))
84 row.names - data.row.names(row.names, rowsi,
85 i)
86 }
Why is that check there?
Bill Dunlap
TIBCO Spotfire
wdunlap tibco.com