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
2
votes
0 answers

Create stop button with gwidgets2 to interrupt running function on Ubuntu

I am making a GUI for a R program which does some quite lengthy calculations while constantly updating plots on a gwidgets GUI. I would like to give the user the possibility to interrupt the calculations if they take too long. I am trying to use a…
drat
  • 121
  • 4
2
votes
1 answer

Displaying a graphic with gWidgets2

Here is my GUI "header": library(gWidgets2RGtk2) library(cairoDevice) library(ggplot2) WINGRAPH0 <- gwindow("") WINGRAPH <- gvbox(container=WINGRAPH0) The following code does not work: gnb <- gnotebook(container=WINGRAPH) ggraph <-…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
2
votes
1 answer

R: gnotebook tab starts on last tab not first

Im currently using these packages for my R programming GUI . library("gWidgetsRGtk2") library("RGtk2") library("gwidgets") i created a window with tabs on the top of it , however whenever i start up , it starts up displaying on the last…
Napmi
  • 521
  • 2
  • 13
  • 32
2
votes
1 answer

R: Fixing my gwidget window size

So i have done an entire gwidget script which creates the GUI for running my scripts . win <- gwindow("TITLE HERE",height=500,weight=500) However it seems that whenever i maximize the window, or elongate the window size by dragging it, it…
Napmi
  • 521
  • 2
  • 13
  • 32
2
votes
1 answer

gWidgets GUI cannot display when called with R CMD BATCH

I developed an analyzer with GUI (utilizing gWidgets package). Everything seems good when I run my code in R console or R studio, GUI can popup as expected, interaction goes smoothly by choosing options. However, my manager has no idea about coding…
2
votes
1 answer

R and gWidgets: Event trigger on close of a widget

I'm currently working on a small GUI based application using gWidgets (RGtk2). I've encountered a question which I was unable to solve by myself using the documentation provided in the gWidgets package: Is it possible to trigger an event, i.e. a…
user1356695
  • 217
  • 1
  • 4
  • 13
2
votes
2 answers

Handler function for radio button created with gradio function in R package gWidgets

I am trying to create radio buttons for an R GUI application using the function gradio in the gWidgets package in R. Here is a simple example of R code that I use to create such a button, which offers the user an option to choose between "Choice 1"…
Isabella Ghement
  • 715
  • 6
  • 14
2
votes
2 answers

How to render print with gWidgets in R?

I am trying to show the results summary using gWidgets, but I cannot find a widget that can do the job easily. For example, ctl <- c(4.17,5.58,5.18,6.11,4.50,4.61,5.17,4.53,5.33,5.14) trt <-…
Zhenglei
  • 988
  • 1
  • 10
  • 21
2
votes
1 answer

alternative to gwidgets or View for displaying and updating a data.table

I'm trying to display a large data.table but I'm getting caught between the sluggishness of a gtable from gWidgets with RGtk2 and the inflexibility of View from base. As an example I could have ex<-data.table(AA=runif(50000,-10,10), …
Dean MacGregor
  • 11,847
  • 9
  • 34
  • 72
2
votes
1 answer

R gWidgets package: stop white screen flashing upon updating a ggplot chart in a ggraphis area

How can I omit the white screen which flashes upon the change or update of a ggplot2 chart in a ggraphis area in the R gWidgets package? When i utilize R plots from the base package of R, the white screen does not appear during the update of…
2
votes
0 answers

Loading and saving variables in R with gWidgets

For the past few months I've been building a simulation in R I hope to package. It consists of two usable functions, and many internal ones which one of the two usable functions call while looping, to perform the stages of simulation. A simple…
SJWard
  • 3,629
  • 5
  • 39
  • 54
2
votes
1 answer

How do I change the WM icon for a gwindow() using gWidgets in R?

I would like to change the Window Manager icon (in the top left corner of my gwindow()), using gWidgets in R. I want to add my own picture rather than using the R logo in the corner. I have loaded the picture into R, just by calling…
Claire F
  • 45
  • 4
2
votes
1 answer

How do I update a gedit box instantly after using gfile to specify a filepath, using gWidgetsRGtk2, in R

I am trying to create a GUI using gWidgetsRGtk2 for a program that I have written in R. My GUI has a gedit() text box in which the user can type a file path for the input data file to be put into the program. It also has a 'browse' button, which,…
Claire F
  • 45
  • 4
2
votes
1 answer

Selecting a file with gWidgets

Below is an artificial example of a R widget created with the gWidgets package: library(gWidgets) options("guiToolkit"="RGtk2") f <- function(file){ dat <- read.table(file, header=TRUE) return(dat[1,]) } lst <- list() lst$action <-…
Stéphane Laurent
  • 75,186
  • 15
  • 119
  • 225
2
votes
0 answers

ggplot2 rendering problems with gWidgets

There seems to be something odd going on with ggplot2 & gWidgets. See an example and the resulting image below. Is there a way to make the facet labels render properly in gWidgets? library(gWidgets) library(ggplot2) win <- gwindow("Graphics…
learnr
  • 6,479
  • 4
  • 27
  • 23
1 2
3
14 15