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

2008-01-16 Thread Peter Dalgaard
Richard Cotton wrote: Prof Brian Ripley wrote: Yes. The problem is of course that we do want a sprintf() format there for Rplot%03d.pdf et al. One option would be to escape % except when in (regexp) %[0-9]*d, which seems nontrivial, but not impossible. But there are other

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] %s in filename when opening device causes crash (PR#10571)

2008-01-14 Thread richard . cotton
Full_Name: Richard Cotton Version: 2.6.1 OS: Windows XP (32bit) Submission from: (NULL) (193.119.236.82) 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) __

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

2008-01-14 Thread ripley
On Mon, 14 Jan 2008, [EMAIL PROTECTED] wrote: Full_Name: Richard Cotton Version: 2.6.1 OS: Windows XP (32bit) Submission from: (NULL) (193.119.236.82) 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

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

2008-01-14 Thread Oleg Sklyar
Same on 2.7.0 Under development (unstable) (2007-12-21 r43753) using Ubuntu i686 2.6.22-14-generic: * ~: R :: R version 2.7.0 Under development (unstable) (2007-12-21 r43753) pdf pdf(foo%s.pdf) *** caught segfault *** address 0x1, cause 'memory not mapped' Traceback: 1: .External(PDF, file,

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

2008-01-14 Thread Peter Dalgaard
[EMAIL PROTECTED] wrote: On Mon, 14 Jan 2008, [EMAIL PROTECTED] wrote: Full_Name: Richard Cotton Version: 2.6.1 OS: Windows XP (32bit) Submission from: (NULL) (193.119.236.82) Using %s in a filename when opening a device causes R to crash, e.g., pdf(foo%s.pdf)

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

2008-01-14 Thread Prof Brian Ripley
On Mon, 14 Jan 2008, Peter Dalgaard wrote: [EMAIL PROTECTED] wrote: On Mon, 14 Jan 2008, [EMAIL PROTECTED] wrote: Full_Name: Richard Cotton Version: 2.6.1 OS: Windows XP (32bit) Submission from: (NULL) (193.119.236.82) Using %s in a filename when opening a device causes R to crash,