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
1
vote
1 answer

Dynamically change border of gbutton in R

I'm using the gWidgets package in R (specifically the RGtk2 toolkit). I've created some gbuttons and you can specify on creation border=FALSE or border=TRUE. Is there a way to dynamically change this option? I know you can change the text on a…
Dason
  • 60,663
  • 9
  • 131
  • 148
1
vote
1 answer

Publishing a rgl interactive 3d plot to the web

I'm looking to see if something is possible, or some ideas if it isn't... I've used the rgl package to generate an interactive 3d plot that you can rotate to look at the data from different angles. I would like to be able to somehow publish this (or…
Ger
  • 754
  • 1
  • 9
  • 33
1
vote
1 answer

gWidgets: how to embed from other packages?

If there is a way to embed in gWidgets objects from other packages. For example from the package utils. options(guiToolkit = "RGtk2") library(RGtk2) library(gWidgets) library(gWidgetsRGtk2) library(utils) w <- gwindow() # gwindow {gWidgets} e <-…
Apostolos Polymeros
  • 823
  • 1
  • 8
  • 19
1
vote
2 answers

R: gwidgets: gtext: align text

I would like to ask if there is a way to align text after we have entered it in gtext. For example x <- c(123.4, 5.6) y <- c(1.2, 3.657) z <- c(12345.6, 789.4) df <- data.frame(x, y, z) df.co <- capture.output(df) # get df as text for (i in…
Apostolos Polymeros
  • 823
  • 1
  • 8
  • 19
1
vote
1 answer

gWidgets: add/remove rows from gdf

How do we add/remove rows from gdf ? EXAMPLE DataFrame <- data.frame(cbind(x=1, y=1:10)) obj <- gdf(DataFrame, container = TRUE) How do we add/remove rows from obj ?
Apostolos Polymeros
  • 823
  • 1
  • 8
  • 19
1
vote
1 answer

multiple inputs in a same form gwidgets2

I am trying to put several ginputs into a form in gWidgets2, or to get the text entered in a gedit widget as a list or something to use in the rest of the code, library(gWidgets2) options(guiToolkit = "tcltk") prj_name = ginput("Project…
Elio Diaz
  • 566
  • 2
  • 19
1
vote
1 answer

create a GUI to load all files in a folder do some basic analysis and export results

I am trying to create a GUI (for the first time, so this a very nooby question) to do some a series of simple tasks: read all the csv files in a folder apply a low-pass filter (for example) export the results in a csv file containing the original…
NeReiS
  • 77
  • 1
  • 8
1
vote
1 answer

Toggle a gbutton in gWidgets2

I am creating a gbutton in gWidgets2 which will toggle between "go" and "stop" when it will be clicked. I am following this example: toggling a group of icons in gWidgets My…
Ekanshu
  • 69
  • 1
  • 11
1
vote
0 answers

How to show "R console content" in the developed graphical user interface (GUI)

I have developed a graphical user interface (GUI) in R using gWidgets. Here is some lines of the code: library(gWidgets) library(rattle) library(RGtk2) library(tcltk) ## Draw main window: main_win <- gwindow("Advanced FFDFS: 4-day & 8-day forest…
Canada2015
  • 187
  • 1
  • 12
1
vote
0 answers

How to place a button at the end of dynamic containers?

I have a button like this : obj4 <-gbutton("+",container=group2) and I have some combobox that I create dynamically : drp <- gcombobox(items = items, editable = TRUE, cont = group2) obji<-gbutton("Ajouter au…
MysteryGuy
  • 1,091
  • 2
  • 18
  • 43
1
vote
1 answer

Why does the font size change after I click the save button?

first post and I hope I'm doing everything correctly. I'm using RStudio: Version 1.1.423; R-Version: 3.4.2, OS: Windows 10 Short problem summary: I start a gwidgets based GUI and the text shows in the desired font size, but when I click the save…
1
vote
0 answers

Installing GTK+ directly from R

I have downloaded the installation file directly from the ftp site. How do I trigger the installation directly from R using the downloaded zip file of GTK? I cant do it directly through RGtk because the company firewall doesn't allow the pcs to.
Dr_Watcher
  • 67
  • 6
1
vote
1 answer

Adding handlers to (button) widget in R using addHandlerXXX

I am currently building a GUI based on the R package 'gWidgets2RGtk2'. I want create a button that reacts with a right mouseclick event. Unfortunately, the code below produces a button, but the gmessage is not shown, when right click on the button…
HappyFrog
  • 31
  • 5
1
vote
0 answers

Calculating the pixel size of a string

I'm building a GUI using R and gWidgets (primarily with RGtk2 toolkit). This GUI will display in some places labels based on a (data-defined) string. This string can be arbitrarily long, but if it is too long it will break the GUI because it will…
jfmoyen
  • 495
  • 2
  • 11
1
vote
0 answers

Passing argument values from gWidgets fields to a function -- Vignette code does not work

I am looking at the code from the gWidgets vignette for the gfunction method. ## A constructor to automagically make a GUI for a function gfunction <- function(f, window = gwindow(title=fName), ...) { ## Get the function and its name …
Cole
  • 600
  • 6
  • 12