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

Description Usage Arguments Value Author(s) See Also Examples

Description

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

Usage

1
2
## Default S3 method:
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.

Author(s)

Henrik Bengtsson

See Also

rcat() and rfile().

Examples

1
2
3
# RSP-embedded text to a preprocessed and validated RSP string
s <- rclean('Current <%@include content="time"%> is <%=Sys.time()%>\n')
print(s)


R.rsp documentation built on May 19, 2017, 6:58 p.m.
Search within the R.rsp package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.