Learn R Programming

tcltk2 (version 1.1-4)

tk2dialogs: Additional Tk dialog boxes

Description

Tk dialog boxes to select a font, a R color, etc.

Usage

tk2chooseFont(...)

Arguments

...
Further arguments passed to the dialog box

Value

  • The selection made in the dialog box if OK is clicked, "" otherwise.

See Also

tk2widgets, tk2commands

Examples

Run this code
## These cannot be run by examples() but should be OK when pasted
## into an interactive R session with the tcltk package loaded
tk2chooseFont()
tk2chooseFont(font = "{courier} 9", title = "Choose a fixed font",
  fonttype = "fixed", style = 4, sizetype = "all")
tk2chooseFont(font = "Verdana 12 bold italic underline overstrike",
    fonttype = "prop", style = 2, sizetype = "point")

Run the code above in your browser using DataLab