Translates the RSP document into R source code.

# S3 method for RspDocument
toR(object, factory=NULL, ...)

Arguments

factory

A RspSourceCodeFactory.

...

Optional arguments passed to toSourceCode() for the RspSourceCodeFactory.

Value

Returns the R source code as an RspRSourceCode.

Author

Henrik Bengtsson

See also

For more information see RspDocument.