r - gwidgets gtable refresh -


i encounter following problem:

library(gwidgets) options(guitoolkit = "rgtk2")  aa <- c(1,2,3) bb <- c(4,5,6) cc <- cbind(aa,bb) cc <-as.data.frame(cc)  t1 <- gtable(cc, container=true) 

i want refresh content of t1 with:

dd <- c(7,8,9) dd <- as.data.frame(dd) 

but when run

t1[] <- dd 

i receive: can't replace fewer columns

apostolos

to expand upon john's answer, here's example.

#data cc <- data.frame(aa = 1:3, bb = 4:6) dd <- data.frame(x = 7:9)  #wigdets win <- gwindow() grp <- ggroup(container = win) t1 <- gtable(cc, container = grp)  #refresh widget delete(grp, t1) t1 <- gtable(dd, container = grp) 

note sample code in question works fine under gwidgetstcltk; it's purely gtk issue.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -