Identifying Sweave Run

Usage

inSweave()

Value

TRUE or FALSE

Description

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

Examples

# Not in a Sweave document
inSweave()
[1] FALSE
# Within a Sweave document