inSweave()
TRUE or FALSE
TRUE
FALSE
Tells if the current code is being executed within a Sweave document.
# Not in a Sweave documentinSweave() [1] FALSE # Within a Sweave document