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
pdf
If TRUE
, a PDF is generated, otherwise a DVI file. force
If TRUE
, file timestamps are ignored. 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 codelibrary("R.rsp")
path <- system.file("doc", package="R.rsp")
rsptex("report.tex.rsp", path=path)
Run the code above in your browser using DataLab