Reference articles on history, science, culture and more
Encyclopedia

RGtk2

Set of R wrappers for the GTK+ graphical user interface library

RGtk2 is a set of R wrappers for the GTK+ graphical user interface library. RGtk2 is free software and licensed under the GPL.

01Syntax

The code below will produce a 200x200 pixel window with the words "Hello World" inside.

library(RGtk2) createWindow <- function() { window <- gtkWindow() label <- gtkLabel("Hello World") window$add(label) } createWindow() gtk.main()

02Notable applications that use RGtk2

RGtk2 has been used in a number of notable applications, some examples:

Watch videos about RGtk2Explainers and documentaries on YouTube (opens in a new tab)

Sources and credits

This article is adapted from the Wikipedia article RGtk2, written by its contributors and licensed under CC BY-SA 4.0. Fathomly has changed the layout, removed citation markers, navigation and maintenance notices, and adjusted punctuation. This adapted version is shared under the same license. For references, see the original article.

Fathomly is not affiliated with or endorsed by the Wikimedia Foundation. Spotted a problem? Tell us.