Re: [Rd] Reproducible Rterm crash. (PR#7072)

From: Deepayan Sarkar <deepayan_at_stat.wisc.edu>
Date: Sat 10 Jul 2004 - 11:06:25 EST

On Friday 09 July 2004 14:28, rmh@temple.edu wrote:

I didn't get a crash (on Windows 2000) with XEmacs/ESS, so this is likely to be related to amount of memory.

> I repeated the exercise on Windows NT4 and the resize worked
> correctly. The graph itself was still empty. This example works
> correctly on S-Plus and generates a series of wireplots of a rotated
> bivariate normal density.

There are a couple of issues here. panel.wireframe() has a very different argument list in S-PLUS and lattice, and even though the ones you have used are common to both, the sequence is different. Using named arguments should fix this, i.e., use

        panel = function(x, y, subscripts, z, angle, ...)
        {
          w <- unique(angle[subscripts])
-         panel.wireframe(x, y, subscripts, z,
+         panel.wireframe(x = x, y = y, subscripts = subscripts, z = z,
                          screen = list(z = w, x = -60, y = 0), ...)
        },

This will give you non-empty panels, but not different angles of rotation. This is because panel.wireframe doesn't handle screen, the top-level function (wireframe) does. There's no good reason for this behavior, so I'll fix it. But since this would be an API change, I don't think I should do it in a stable update. I can send you a patched version privately if you wish.

Deepayan



R-devel@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-devel Received on Sat Jul 10 11:13:37 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:45:01 EST