Re: [R] Device problems in a loop.

2008-03-28 Thread Prof Brian Ripley
This is an instance of FAQ Q7.22: you haven't plotted anything and so the device is not yet open. On Fri, 28 Mar 2008, Todd Remund wrote: > > I have tried the following code to plot and save many box plots in files. > The code works by itself, but does not run in a loop. The error indicates

[R] Device problems in a loop.

2008-03-28 Thread Todd Remund
I have tried the following code to plot and save many box plots in files. The code works by itself, but does not run in a loop. The error indicates that there is no device. The error is printed below the code. Code: for(i in 1:len) { A = as.numeric(delta[Delta[i,1]]) B = as.numeric(