Re: [R] blank pdf output when called in a loop

2010-07-20 Thread Nicolas STRANSKY
On 7/20/10 8:14 PM, David Winsemius wrote: > > On Jul 20, 2010, at 7:21 PM, Joshua Wiley wrote: > >> Hi Nicolas, >> >> You nee to explicitly wrap it in print() when it is inside a loop (if >> I'm not mistaken also when inside a function). With lattice loaded, >> you can find the specific print m

Re: [R] blank pdf output when called in a loop

2010-07-20 Thread David Winsemius
On Jul 20, 2010, at 7:21 PM, Joshua Wiley wrote: Hi Nicolas, You nee to explicitly wrap it in print() when it is inside a loop (if I'm not mistaken also when inside a function). With lattice loaded, you can find the specific print methods by methods(print) . The interpreter handles finding

Re: [R] blank pdf output when called in a loop

2010-07-20 Thread Joshua Wiley
Hi Nicolas, You nee to explicitly wrap it in print() when it is inside a loop (if I'm not mistaken also when inside a function). With lattice loaded, you can find the specific print methods by methods(print) . From your example: pdf("temp1.pdf", width=8, height=8) for(k in 1) { print(wireframe(

[R] blank pdf output when called in a loop

2010-07-20 Thread Nicolas STRANSKY
Hi, I'm hitting a strange problem where pdf plots that I'm trying to make are blank, only when produced from within a loop. The pdf contains 0 page. I've narrowed the problem to this minimal script that invariably produces an empty pdf with my setup: pdf("/local/scratch/1.pdf", width=8, height=8)