R.rsp (version 0.15.0)

rclean: Compiles an RSP document into a preprocessed and validated RSP document

Description

Compiles an RSP document into a preprocessed and validated RSP document.

Usage

## S3 method for class 'default':
rclean(..., file=NULL, path=NULL, envir=parent.frame(), args="*", 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.
envir
The environment in which the RSP string is preprocessed.
args
A named list of arguments assigned to the environment in which the RSP document is parsed. See cmdArgs.
verbose
See Verbose.

Value

Examples

Run this code
# RSP-embedded text to a preprocessed and validated RSP string
s <- rclean('Current <%@include content="time"%> is <%=Sys.time()%><n>')
print(s)</n>

[object Object]

<seealso><code><a href="rcat" rd-options="">rcat</a></code>() and <code><a href="rfile" rd-options="">rfile</a></code>().</seealso>




<keyword>file</keyword>
<keyword>IO</keyword>
<keyword>internal</keyword>

Run the code above in your browser using DataCamp Workspace