RGtk2#Syntax

{{Short description|Set of R wrappers for the GTK+ graphical user interface library}}

{{Infobox software

| name = RGtk2

| screenshot =

| caption =

| developer = Michael Lawrence and Duncan Temple Lang

| latest release version = {{wikidata|property|reference|P348}}

| latest release date = {{start date and age|{{wikidata|qualifier|P348|P577}}}}

| operating system = Cross-platform

| platform = Cross-platform

| genre = widget toolkit

| license = GPL

| website = [http://www.ggobi.org/rgtk2/ 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.

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:

{{div col}}

{{div col end}}

See also

{{Portal|Free and open-source software}}

References

{{Reflist}}