completion: Code or arguments completion

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
3
4

Arguments

...

arguments passed to completion.

line

the line of code currently edited.

Value

For completeCode(), a list with these items:

token

the token being completed.

completions

a matrix of potential completions.

fun

in case of function completion, the name of the function.

tooltip

in case of function completion, the function tooltip.

For completeCol(), a list with these items:

token

the token being completed.

completions

list of color names.

col.rgb

matrix with RGB values for the corresponding colors.

For the other function, the returned list contains:

token

the token being completed.

completions

list of completion items.

Author(s)

Romain Francois <francoisromain@free.fr>

See Also

completion

Examples

1
2
3
4
completeCode("browse")
completeCol("plot(x, y, col = ")
completeLty("plot(x, y, lty = ")
completePch("plot(x, y, pch = ")

svTools documentation built on May 29, 2017, 5:31 p.m.