Skip to main content

Module validator

Module validator 

Source
Expand description

R input validation for multi-line editing.

Determines whether an input line is a complete R expression or needs continuation (unclosed brackets, strings, trailing operators, etc.). When the expression is incomplete, reedline shows the + continuation prompt and lets the user keep typing.

Structsยง

RValidator

Functionsยง

is_likely_incomplete ๐Ÿ”’
strip_trailing_comment ๐Ÿ”’
Strip a trailing comment from a line, returning just the code portion. For multi-line input, only considers the last non-empty line.