Learn R Programming

pkgmaker (version 0.22)

inSweave: Identifying Sweave Run

Description

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

Usage

inSweave()

Arguments

Value

TRUE or FALSE

Examples

Run this code
# NOT RUN {
# Not in a Sweave document
inSweave()

# Within a Sweave document
# }

Run the code above in your browser using DataLab