EditText: GUI: Edit Text

Description Usage Arguments Value Author(s) Examples

View source: R/EditText.R

Description

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

Usage

1
2
3
4
5
6
7
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.

Author(s)

J.C. Fisher, U.S. Geological Survey, Idaho Water Science Center

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## 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)

## End(Not run)

jfisher-usgs/RSurvey documentation built on July 3, 2020, 4:20 p.m.