RGtk2
Set of R wrappers for the GTK+ graphical user interface library
title: "RGtk2" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["gtk-language-bindings", "free-r-(programming-language)-software", "articles-with-example-r-code"] description: "Set of R wrappers for the GTK+ graphical user interface library" topic_path: "general/gtk-language-bindings" source: "https://en.wikipedia.org/wiki/RGtk2" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::summary Set of R wrappers for the GTK+ graphical user interface library ::
::data[format=table title="Infobox software"]
| Field | Value |
|---|---|
| name | RGtk2 |
| developer | Michael Lawrence and Duncan Temple Lang |
| latest release version | |
| latest release date | |
| operating system | Cross-platform |
| platform | Cross-platform |
| genre | widget toolkit |
| license | GPL |
| website | www.ggobi.org/rgtk2 |
| :: |
| name = RGtk2 | screenshot = | caption = | developer = Michael Lawrence and Duncan Temple Lang | latest release version = | latest release date = | operating system = Cross-platform | platform = Cross-platform | genre = widget toolkit | license = GPL | website = www.ggobi.org/rgtk2 Main article: List of language bindings for GTK+
RGtk2 is a set of R wrappers for the GTK+ graphical user interface library. RGtk2 is free software and licensed under the GPL.
Syntax
The code below will produce a 200x200 pixel window with the words "Hello World" inside.
::code[lang=r] library(RGtk2)
createWindow <- function() { window <- gtkWindow()
label <- gtkLabel("Hello World")
window$add(label)
}
createWindow() gtk.main() ::
Notable applications that use RGtk2
RGtk2 has been used in a number of notable applications, some examples:
References
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::