I'd like to use lattice to make graphics under conditional structure like : 
if (TRUE) { barchart(....)
dev.print(png, file = "image1.png", width = 600)
}
but there's nothing in the output file. It seems that it's too long to print graphic into the graphical output and the saved file is a blank picture.
it works if I do that without the conditionnal structure.
it doesn't work if I source a batch file
can you help me?

I'm using R1.6.2 under win98
Thanks
	[[alternative HTML version deleted]]


