Identifying Sweave Run

Description

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

Usage

1

Value

TRUE or FALSE

Examples

1
2
3
4
# Not in a Sweave document
inSweave()

# Within a Sweave document

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.