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

inSweave()

Value

TRUE or FALSE

Examples

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