Learn R Programming

R.rsp (version 0.46.0)

typeOfRnw: Checks whether an Rnw file is a Sweave or a knitr file

Description

Checks whether an Rnw file is a Sweave or a knitr file.

Usage

# S3 method for default
typeOfRnw(filename, path=NULL, default="application/x-sweave", ...)

Value

Returns a character string.

Arguments

filename, path

The filename and (optional) path of the Rnw file.

default

A character string specifying the default result.

...

Not used.

Author

Henrik Bengtsson

See Also

TBA.