rclean

0th

Percentile

Compiles an RSP document into a preprocessed and validated RSP document

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

Keywords
internal, file, IO
Usage
# S3 method for 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

Returns an RspString.

See Also

rcat() and rfile().

Aliases
  • rclean.default
  • rclean
  • rclean.RspString
  • rclean.RspDocument
Examples
# NOT RUN {
# RSP-embedded text to a preprocessed and validated RSP string
s <- rclean('Current <%@include content="time"%> is <%=Sys.time()%>\n')
print(s)
# }
Documentation reproduced from package R.rsp, version 0.43.1, License: LGPL (>= 2.1)

Community examples

Looks like there are no examples yet.