powered by
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
Run the code above in your browser using DataLab