inSweave: Identifying Sweave Run

View source: R/vignette.R

inSweaveR Documentation

Identifying Sweave Run

Description

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

Usage

inSweave()

Value

TRUE or FALSE

Examples


# Not in a Sweave document 
inSweave()

# Within a Sweave document


renozao/pkgmaker documentation built on May 3, 2023, 6:04 p.m.