Processes all RSP preprocessing directives.

# S3 method for RspDocument
preprocess(object, recursive=TRUE, flatten=TRUE, envir=parent.frame(),
  clipboard=new.env(), ..., verbose=FALSE)

Arguments

recursive

If TRUE, any RspDocuments introduced via preprocessing directives are recursively parsed and preprocessed as well.

flatten

If TRUE, any RspDocument introduced is replaced (inserted and expanded) by its list of RspConstructs.

envir

The environment where the preprocessing is evaluated.

clipboard

An environment hold cut'n'paste directives during preprocessing.

...

Not used.

verbose

See Verbose.

Value

Returns an RspDocument.

Author

Henrik Bengtsson

See also

For more information see RspDocument.