inSweave: Identifying Sweave Run

Description

Tells if the current code is being executed within a Sweave document.

Usage

1

Value

TRUE or FALSE

Examples

1
2
3
4
# Not in a Sweave document
inSweave()

# Within a Sweave document

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

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