inSweave: Identifying Sweave Run

Description Usage Value Examples

View source: R/vignette.R

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

pkgmaker documentation built on May 2, 2019, 4:42 p.m.