completion {svTools}R Documentation

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:

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

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

[Package svTools version 0.9-5 Index]