Skip to main content

Module completer

Module completer 

Source
Expand description

Tab completion for R builtin functions, keywords, and named parameters.

Provides completions from four sources:

  1. R keywords (if, for, function, etc.)
  2. R literal constants (TRUE, FALSE, NULL, NA, etc.)
  3. All registered builtin function names
  4. Named parameters when inside a function call (e.g. runif(n = 10, m โ†’ min =)

Structsยง

RCompleter

Functionsยง

complete_params ๐Ÿ”’
complete_params_from_strings ๐Ÿ”’
extract_doc_params ๐Ÿ”’
Extract parameter names from @param doc lines (for variadic builtins).
find_enclosing_function ๐Ÿ”’
Try to find the enclosing function name for the cursor position.