hash: Supply Comment Characters with Output

Description Usage Arguments Details Value Warning Author(s) References See Also

Description

Any expression that generates output can be wrapped in a call to hash. The usual output will be returned, with a hash character at the start of each line.

Usage

1
hash(x,char='#')

Arguments

x

an R expression

char

text to prepend to each line

Details

This is useful for embedding the result of an expression in a script.

Value

used for side effects

Warning

Don't “hash” an expression that directly or indirectly calls a function being debugged. The debug output will be ‘sunk’ to a connection. If you get in this situation, recover by typing sink(NULL) until output is restored.

Author(s)

Tim Bergsma

References

http://metrumrg.googlecode.com

See Also


metrumrg documentation built on May 2, 2019, 5:55 p.m.