I have a layout in gwidgets. To this, I wanted to add a Textbox(gtkEntry) created from rgtk2...
The code is as follows: MainLayOut <- glayout(homogeneous = FALSE, spacing = 10, container = SubGroup) MainLayOut[1, 1, anchor=left] <- "Number of Total Patients: " font(MainLayOut[1, 1, anchor=left]) <- c(weight="bold") patients <- gtkEntry() patients['text'] <- "200" patients['xalign'] <- 1 MainLayOut[1, 2, anchor=Right ]$add(patients) # <- gedit("200", container=MainLayOut) Error: Error in MainLayOut[1, 2, anchor = Right]$add : $ operator is invalid for atomic vectors please provide me a solution Thanking you Krishna -- View this message in context: http://r.789695.n4.nabble.com/How-to-add-widgets-of-gWidgets-to-widgets-of-rgtk2-tp4651396.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.