dummy_detective: Incompetent detective

Description Usage Arguments Value Note Author(s) See Also Examples

View source: R/detectives.R

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 <[email protected]>

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)

highlight documentation built on May 31, 2017, 2:44 a.m.