From charlie at stat.umn.edu  Fri Sep  2 17:30:38 2005
From: charlie at stat.umn.edu (Charles Geyer)
Date: Fri, 2 Sep 2005 10:30:38 -0500
Subject: [Rd] lattice and for loop
Message-ID: <20050902153038.GA13664@stat.umn.edu>

----- Forwarded message from Sandy Weisberg <sandy at stat.umn.edu> -----

OK, here is my R bug:

library(lattice)
x <- rnorm(20)
y <- rnorm(20)
z <-rep(c(1,2),10)
xyplot(y~x|z)
# the above works fine.  Now try this:

for (j in 1:1) {xyplot(y~x|z)}

# no graph is produced.

-- 
Sanford Weisberg
University of Minnesota, School of Statistics
312 Ford Hall, Minneapolis, MN  55455
612-625-8355, FAX 612-624-8868
St. Paul office:  146 Classroom-Office Building, 612-625-8777
sandy at stat.umn.edu

----- End forwarded message -----

Sandy originally found this in

    R 2.1.1 (for Windows).

I have tried this in

    R 2.1.1 Patched (2005-08-04).
    R 2.1.1 Patched (2005-09-02).
    R 2.2.0 Under development (unstable) (2005-09-01).

all on

    Linux 2.6.11.4-21.7-smp i686 athlon i386 GNU/Linux
    Suse 9.3
    gcc (GCC) 3.3.5 20050117 (prerelease) (SUSE Linux)

So our question is: is this a bug or a feature?

-- 
Charles Geyer
Professor, School of Statistics
University of Minnesota
charlie at stat.umn.edu



[Rd] lattice and for loop
Charles Geyer