Hi, I'am using the playwith library to write my own small GUI application. But I get the following error under Windows and Linux (Ubuntu): Error in if ((modeOK %in% c("Identify", "Brush")) && (actions$ident == : Fehlender Wert, wo TRUE/FALSE n?tig ist Under linux my R program simply continues, but under Windows it stops. Since it is not in my code, has anyone an idea what goes wrong? I most of the generated picture it is not possible to Brush or Identify. Thanks in advance Sigbert
Hello On 2/1/10, Sigbert Klinke <sigbert at wiwi.hu-berlin.de> wrote:> I'am using the playwith library to write my own small GUI application. > But I get the following error under Windows and Linux (Ubuntu): > > Error in if ((modeOK %in% c("Identify", "Brush")) && (actions$ident == : > Fehlender Wert, wo TRUE/FALSE n?tig ist >Can you post a reproducible example that leads to this error?> Under linux my R program simply continues, but under Windows it stops. > Since it is not in my code, has anyone an idea what goes wrong? I most > of the generated picture it is not possible to Brush or Identify. >This can happen depending on the exact graph type. You might want to look at the playwith bug tracker [1]. Liviu [1] http://code.google.com/p/playwith/issues/list
Hi,> Can you post a reproducible example that leads to this error?myplot <- function(x) { plot(x) } efaApp <- function(data, ...) { playwith (myplot(data[,8:9]), click.mode = "Brush", ) } efaApp(as.data.frame(Boston)) My plot routines even return invisibly a list itself.>> Under linux my R program simply continues, but under Windows it stops.I just saw that under Windows my program continues as well, just the GTK+ window was minimized. Thanks Sigbert
On 2/1/10, Sigbert Klinke <sigbert at wiwi.hu-berlin.de> wrote:> efaApp <- function(data, ...) > { > playwith (myplot(data[,8:9]), > click.mode = "Brush", > ) > } >This does work if you use plot() directly: efaApp <- function(data, ...) { playwith (plot(data[,1:2]), click.mode = "Brush", ) }> efaApp(as.data.frame(Boston)) > > My plot routines even return invisibly a list itself. >My guess is that by passing through a custom function you generate output that playwith does not understand. One way to work around is: myplot <- function(x, ...) { plot(x) } Allowing for other options seems to make playwith happier. Liviu> >> Under linux my R program simply continues, but under Windows it stops. > > > I just saw that under Windows my program continues as well, just the > GTK+ window was minimized. > > Thanks Sigbert >-- Do you know how to read? http://www.alienetworks.com/srtest.cfm http://goodies.xfce.org/projects/applications/xfce4-dict#speed-reader Do you know how to write? http://garbl.home.comcast.net/~garbl/stylemanual/e.htm#e-mail