Learn R Programming

RSurvey (version 0.9.3)

EditText: GUI: Edit Text

Description

A graphical user interface (GUI) for viewing and editing text.

Usage

EditText(txt, read.only = FALSE, win.title = "View Text",
  is.fixed.width.font = FALSE, parent = NULL)

Arguments

txt

character. Text used to populate the window.

read.only

logical. Specifies whether the text is read only.

win.title

character. Title of the dialog box.

is.fixed.width.font

logical. Specifies whether a fixed-width font be used.

parent

tkwin. GUI parent window

Value

Returns an object of class character with edited text.

Examples

Run this code
# NOT RUN {
  txt <- c("\"Hills cherish the ambition",
           "    to turn into partial",
           "   differential equations\"",
           "",
           "        -Donald Hall")
  new.txt <- EditText(txt, is.fixed.width.font = TRUE)

  EditText(txt, read.only = TRUE)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab