dummy_detective: Incompetent detective

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

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)


Search within the highlight package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.