powered by
Compiles an RSP document into a preprocessed and validated RSP document.
# S3 method for default rclean(..., file=NULL, path=NULL, envir=parent.frame(), args="*", verbose=FALSE)
character strings with RSP markup.
character
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.
connection
path
The environment in which the RSP string is preprocessed.
environment
A named list of arguments assigned to the environment in which the RSP document is parsed. See cmdArgs.
list
cmdArgs
See Verbose.
Verbose
Returns an RspString.
RspString
rcat() and rfile().
rcat
rfile
# NOT RUN { # RSP-embedded text to a preprocessed and validated RSP string s <- rclean('Current <%@include content="time"%> is <%=Sys.time()%>\n') print(s) # }
Run the code above in your browser using DataLab