Questions tagged [gwidgets]

gWidgets provides a toolkit-independent API for building GUIs for the R programming language.

gWidgets is a set of packages for development. It provides a high-level wrapper over R packages that interface , and , providing a (more-or-less) toolkit-independent way of building GUIs.

Current packages start with the prefix gWidgets2, and older versions start with just gWidgets. V1 of gWidgets also has (now obsolete) interfaces to Java and HTML GUI tools.

Repositories

gWidgets2 gWidgets2RGtk2 gWidgets2tcltk gWidgetsqt gWidgets gWidgetsRGtk2 gWidgetstcltk

Vignettes

Books

Other resources

Related tags

  • 's and packages for creating web and Java GUIs respectively
215 questions
12
votes
2 answers

data.table error when used through knitr, gWidgetsWWW

I'm experimenting with gWidgetsWWW and encountered a strange error. I created a button with a handler to knit2html a report which used the data.table assignment operator ":=". The report came back with this error: Error: := is defined for use in…
Zach Waite
  • 347
  • 1
  • 2
  • 7
8
votes
3 answers

gwidgets gtable refresh

I encounter the 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 to refresh the content of t1 with: dd <-…
Apostolos
  • 101
  • 3
8
votes
3 answers

How to return values from gWidgets and handlers?

I am trying to develop a GUI (using gWidgets) for an R package. My plan was to construct a main window holding the data, and with buttons calling small gui wrappers for each function. Unfortunately I am stuck on a basic(?) problem - I don't know how…
Oskar Hansson
  • 331
  • 4
  • 15
7
votes
1 answer

Using ggplot2 within gWidgetsRGtk2

I'm building a GUI using gWidgetsRGtk2 and am having trouble making a ggplot appear on the click of a gbutton. The plotting function works by itself (i.e. when you type "plotData()"), but I can't get it to work with gWidgets. Is there some…
bstock
  • 190
  • 1
  • 9
6
votes
3 answers

How do you refresh the contents of an R gWidget?

I'm creating a GUI in R using gWidgets (more specifically gWidgetstcltk). I'd like to know how to update the contents of selection-type widgets, such as gdroplist and gtable. I currently have a rather hackish method of deleting the widget and…
Richie Cotton
  • 118,240
  • 47
  • 247
  • 360
5
votes
2 answers

Using R reference classes to pass values from one window to another in a GUI

I am making a GUI in R using gWidgets. Until now I have been passing values from one window to another via the global environment. Using the global environment is simple to implement but not ideal. One problem is that R CMD check complains about…
5
votes
1 answer

integrating manipulate outputs with knitr

I was wondering if there is a way in which its possible to integrate the manipulate package or gWidgetsManipulate package so that their outputs can be viewable/manipulable in the html/markdown output file, as I think that this would be extremely…
h.l.m
  • 13,015
  • 22
  • 82
  • 169
4
votes
2 answers

R Prompt User With Autocomplete

Is there a way in R to prompt a user (i.e. scanf) for information and also allow auto-completion of that prompt using an array of strings as possible completions? Basically, looking for something like GNU Readline for R (ideally with an example).
Kyle Brandt
  • 26,938
  • 37
  • 124
  • 165
4
votes
1 answer

How to return value from a function in gwidgets

I have the following code to select the input and output folders' directories. require(gWidgets2RGtk2) input=NULL win = gwindow("Stage 1") g = ggroup(horizontal=FALSE,cont=win) g1=ggroup(cont=g) svalue(input)<-gbutton("Input…
Wet Feet
  • 4,435
  • 10
  • 28
  • 41
4
votes
2 answers

Drop down list implementation in `gdf`

I am creating an interface that allows users to edit a data frame, which will then be used as an input for the script. The choices the user can input into each cell is limited. Thus, I am wondering if there is a way to implement a gdroplist (with…
Wet Feet
  • 4,435
  • 10
  • 28
  • 41
4
votes
2 answers

User input when executing R code in batch mode

I am searching for a way to get user input inside a loop while executing in batch mode. readLines() and scan() work well for me in interactive mode only, in batch mode they start to read in lines of code as user input, unless all the code is…
user1603038
  • 2,103
  • 3
  • 19
  • 29
4
votes
2 answers

What can I do against Gtk-CRITICAL error?

I'm writing a small database interface and want to use glayout. MWE: require(gWidgets) options("guiToolkit"="RGtk2") ### The bowl win <- gwindow( "Fruits") gui <- glayout( container = win ) ### Fruit salad gui[1,1] <- glabel( "Apple",…
vaettchen
  • 7,299
  • 22
  • 41
3
votes
6 answers

How Do I Stop An R gWidgets Script Exiting

I am using the gWidgets toolkit to create a GUI in an R script that is run using Rscript. When the GUI is created, the script exits. I can prevent this with a while(TRUE){Sys.sleep(9999)} loop at the end of the script but that seems hacky. Is there…
Rob Myers
  • 546
  • 4
  • 11
3
votes
1 answer

Can I embed cranvas interactive graphics into gWidgets (gWidgetsQt) in R

I would like to know if there is a way to embed a cranvas interactive plot within a gWidgets GUI when using R. cranvas requires qtpaint and qtbase so the toolkit would probably be gWidgetsQt. I was told that PlotView is a qWidget and so it should be…
sebble
  • 123
  • 1
  • 8
3
votes
0 answers

R: how to embed a 3D plot created by "rgl" into "gWidgets ggraphics device“?

I created some 3D cubes with different colors by using rgl package. My next step is to embed the 3D plot into ggraphics device from the gWidgets package, but I have no idea how to implement it. Is there a way to implement by gWidgets or other…
Just Rookie
  • 209
  • 3
  • 8
1
2 3
14 15