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
See also
{{Portal|Free and open-source software}}
- R (programming language) (The R statistical programming language)
References
{{Reflist}}
External links
- [http://www.ggobi.org/rgtk2/ RGtk2 Homepage] {{Webarchive|url=https://web.archive.org/web/20100718163652/http://www.ggobi.org/rgtk2/ |date=2010-07-18 }}
- [https://cran.r-project.org/web/packages/RGtk2 RGtk2 Package on CRAN]
- [https://github.com/cran/RGtk2 github]
{{R (programming language)}}
{{GTK}}
Category:GTK language bindings