toR.RspDocument.RdTranslates the RSP document into R source code.
# S3 method for RspDocument
toR(object, factory=NULL, ...)Optional arguments passed to toSourceCode() for
the RspSourceCodeFactory.
Returns the R source code as an RspRSourceCode.
For more information see RspDocument.