qtutils (version 0.1-3)

RCodeEditor: A widget for editing R code

Description

RCodeEditor subclasses Qt$QPlainTextEdit to provide additional functionality suitable for a R code editor, namely, code indentation and command completion (both using TAB, with indentation preferred, and completion if already indented). The details of indentation are not yet customizable.

Usage

# constructor RCodeEditor(family = "monospace", pointsize = 14, underscore.assign = FALSE, comp.tooltip = TRUE)

Arguments

family
Font family to be used.
pointsize
Font pointsize to be used.
underscore.assign
Logical flag, indicating whether pressing the underscore key adds the assignment operator <- instead of an underscore.
comp.tooltip
Logical flag, indicating whether multiple completions should be indicated by a tooltip. Otherwise, a signal completionsAvailable(QString character) is emitted with a single argument containing the possible completions.

Value