Learn R Programming

highlight (version 0.4.2)

dummy_detective: Incompetent detective

Description

The simplest possible detective. It simply returns an empty character vector of the appropriate length.

Usage

dummy_detective(x, ...)

Arguments

x
The result of the parse. The only information this detective uses is the number of tokens.
...
Additional arguments. Ignored.

Value

  • An empty character vector of the appropriate length, corresponding to the number of tokens to render.

See Also

Actual detective: simple_detective

Examples

Run this code
tf <- tempfile()
dump( "jitter", file = tf )
highlight( file = tf, detective = dummy_detective, 
	renderer = renderer_html( document = TRUE ) )

Run the code above in your browser using DataLab