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 parser. 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)

Dasonk/highlight documentation built on May 6, 2019, 1:37 p.m.