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