Identifying Sweave Run
Tells if the current code is being executed within a Sweave document.
inSweave()
TRUE
or FALSE
# Not in a Sweave document inSweave() # Within a Sweave document
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.