Re: [Rd] %s in filename when opening device causes crash (PR#10571)

2008-01-15 Thread Richard . Cotton
Using %s in a filename when opening a device causes R to crash, e.g., pdf(foo%s.pdf) win.metafile(foo%s.wmf) postscript(foo%s.ps) Do you have a workaround for this? Since that is done at C level, we can't easily trap this (especially on Windows), and the list of possible errors

[Rd] bug in mmlcr ? (PR#10576)

2008-01-15 Thread cgenolin
Hi the list. Is there a bug in mmlcr package ? The following code does not compile: mmlcrTest - function(dataW){ dataL - reshape(dataW,idvar=id,timevar=T,varying=list(T0,T1,T2),direction=long,v.names=score) resultR - mmlcr(outer= ~ 1 | id, components = list(list(formula =

Re: [Rd] bug in mmlcr ? (PR#10576)

2008-01-15 Thread Ken Beath
On 15/01/2008, at 7:40 PM, [EMAIL PROTECTED] wrote: Hi the list. Is there a bug in mmlcr package ? The following code does not compile: mmlcrTest - function(dataW){ dataL - reshape (dataW ,idvar = id ,timevar =T,varying=list(T0,T1,T2),direction=long,v.names=score) resultR -

[Rd] Pb with defineVar() example in the Writing R Extensions manual

2008-01-15 Thread Herve Pages
Hi, I'm wondering if this code from the Writing R Extensions manual is really safe: SEXP mkans(double x) { SEXP ans; PROTECT(ans = allocVector(REALSXP, 1)); REAL(ans)[0] = x; UNPROTECT(1); return ans; } double feval(double x, SEXP