Learn R Programming

R.rsp (version 0.20.0)

rsptex: Compiles an RSP LaTeX file into a DVI file

Description

Compiles an RSP LaTeX file into a DVI file.

Usage

## S3 method for class 'default':
rsptex(..., pdf=TRUE, force=FALSE, verbose=FALSE)

Arguments

...
Arguments passed to compileRsp0().
pdf
If TRUE, a PDF is generated, otherwise a DVI file.
force
If TRUE, file timestamps are ignored.
verbose
See Verbose.

Value

  • Returns the pathname to the generated document.

Retrieving intermediate and final results

By default, the RSP document is processed in a local environment, which is discarded afterward. This can be avoided by explicitly specifying the processing environment, e.g. env <- new.env(); rsptex(..., envir=env). Afterward you can query its content by, say, ll(envir=env) or attach its content by attachLocally(env).

See Also

The generated TeX document is compiled by texi2dvi in the tools package.

Examples

Run this code
library("R.rsp")
path <- system.file(package="R.rsp")
path <- file.path(path, "rsp_LoremIpsum")
rsptex("LoremIpsum.tex.rsp", path=path)

Run the code above in your browser using DataLab