translateRspV1 {R.rsp}R Documentation

Translates an RSP file to an R servlet

Description

Translates an RSP file to an R servlet.

Usage

## Default S3 method:
translateRspV1(file="", text=NULL, path=getParent(file),
  rspLanguage=getOption("rspLanguage"), trimRsp=TRUE, verbose=FALSE, ...)

Arguments

file

A filename, a URL, or a connection to be read. Ignored if text is not NULL.

text

If specified, a character vector of RSP code to be translated.

path

A pathname setting the current include path. If file is a filename and its parent directory is different from this one, path is added to the beginning of file before the file is read.

rspLanguage

An RspLanguage object.

trimRsp

If TRUE, white space is trimmed from RSP blocks.

verbose

Either a logical, a numeric, or a Verbose object specifying how much verbose/debug information is written to standard output. If a Verbose object, how detailed the information is is specified by the threshold level of the object. If a numeric, the value is used to set the threshold of a new Verbose object. If TRUE, the threshold is set to -1 (minimal). If FALSE, no output is written. [Currently not used.]

...

Not used.

Value

Returns a character string of R source code.

Author(s)

Henrik Bengtsson

See Also

sourceRsp().


[Package R.rsp version 0.30.0 Index]