rcodeeditor: A widget for editing R code

Description Usage Arguments Value Author(s)

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

1
2
3
# 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

An RCodeEditor instance.

Author(s)

Deepayan Sarkar


qtutils documentation built on May 29, 2017, 5:54 p.m.

Related to rcodeeditor in qtutils...