Learn R Programming

svTools (version 0.9-5)

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:

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.

See Also

completion

Examples

Run this code
# NOT RUN {
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