Learn R Programming

R.rsp (version 0.43.0)

rcompile: Compiles an RSP document

Description

Compiles an RSP document.

Usage

# S3 method for default
rcompile(..., file=NULL, path=NULL, output=NULL, workdir=NULL, envir=parent.frame(),
  args="*", until="*", verbose=FALSE)

Arguments

...

character strings with RSP markup.

file, path

Alternatively, a file, a URL or a connection from with the strings are read. If a file, the path is prepended to the file, iff given.

output

A character string or a connection specifying where output should be directed. The default is a file with a filename where the input filename has been prepended by compiled- and saved in the directory given by the workdir argument.

workdir

The working directory to use after parsing and preprocessing. If argument output specifies an absolute pathname, then the directory of output is used, otherwise the current directory is used.

envir

The environment in which the RSP string is preprocessed and evaluated.

args

A named list of arguments assigned to the environment in which the RSP string is parsed and evaluated. See cmdArgs.

until

Specifies how far the compilation should proceed.

verbose

See Verbose.

Value

Returns an RspString, RspDocument or an RspFileProduct (depending on argument output).

See Also

rcat() and rfile().