Learn R Programming

pkgmaker (version 0.32.10)

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 in a Sweave document 
inSweave()

# Within a Sweave document

Run the code above in your browser using DataLab