Incompetent detective

Share:

Description

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

Usage

1

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.

Note

This is mostly here to illustrate the simplest possible detective implementation.

Author(s)

Romain Francois <romain@r-enthusiasts.com>

See Also

Actual detective: simple_detective

Examples

1
2
3
4
5
6
7
## Not run: 
tf <- tempfile()
dump( "jitter", file = tf )
highlight( file = tf, detective = dummy_detective, 
	renderer = renderer_html( document = TRUE ) )

## End(Not run)