Hi all, Does anyone know a solution for this error ?> tkwidget(dlg, "iwidgets::spinint", range="{0 23}")Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class "tclObj") : [tcl] wrong # args: should be ".31.1.19 configure -range {begin end}". Thanks, Matthew [[alternative HTML version deleted]]
Matthew Dowle <mdowle at concordiafunds.com> writes:> Hi all, > > Does anyone know a solution for this error ? > > > tkwidget(dlg, "iwidgets::spinint", range="{0 23}")I suspect you want range=as.tclObj(c(0,23)) or something like that, i.e. a Tcl list of two numbers, not a five-character string.> Error in structure(.External("dotTclObjv", objv, PACKAGE = "tcltk"), class > "tclObj") : > [tcl] wrong # args: should be ".31.1.19 configure -range {begin > end}".-- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907
Peter, Yes c(0,23) works. Many thanks! Matthew -----Original Message----- From: Peter Dalgaard [mailto:p.dalgaard at biostat.ku.dk] Sent: 26 November 2004 16:43 To: Peter Dalgaard Cc: Matthew Dowle; 'r-help at stat.math.ethz.ch' Subject: Re: [R] Tcl error - brace in argument? Peter Dalgaard <p.dalgaard at biostat.ku.dk> writes:> Matthew Dowle <mdowle at concordiafunds.com> writes: > > > Hi all, > > > > Does anyone know a solution for this error ? > > > > > tkwidget(dlg, "iwidgets::spinint", range="{0 23}") > > I suspect you want range=as.tclObj(c(0,23)) or something like that, > i.e. a Tcl list of two numbers, not a five-character string.On second thoughts: I think range=c(0,23) should do. -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk) FAX: (+45) 35327907