Learn R Programming

svTools (version 0.9-0)

completion: Code or arguments completion

Description

Provide a list of completion candidates for code or arguments like col, lty or pch.

Usage

completeCode(...)
completeCol(line)
completeLty(line)
completePch(line)

Arguments

...
arguments passed to completion.
line
the line of code currently edited.

Value

  • For completeCode(), a list with these items:
  • tokenthe token being completed.
  • completionsa matrix of potential completions.
  • funin case of function completion, the name of the function.
  • tooltipin case of function completion, the function tooltip.
  • For completeCol(), a list with these items:
  • tokenthe token being completed.
  • completionslist of color names.
  • col.rgbmatrix with RGB values for the corresponding colors.
  • For the other function, the returned list contains:
  • tokenthe token being completed.
  • completionslist of completion items.

concept

code completion for editors and IDE

See Also

completion

Examples

Run this code
completeCode("browse")
completeCol("plot(x, y, col = ")
completeLty("plot(x, y, lty = ")
completePch("plot(x, y, pch = ")

Run the code above in your browser using DataLab