R: The RspDocument class

RspDocument {R.rsp} | R Documentation

## The RspDocument class

### Description

Package: R.rsp
Class RspDocument

`list`
`~~|`
`~~+--``RspObject`
`~~~~~~~|`
`~~~~~~~+--``RspDocument`

Directly known subclasses:

public class RspDocument
extends RspObject

An RspDocument represents a `list` of `RspConstruct`:s.

### Usage

    RspDocument(expressions=list(), ...)

### Arguments

`expressions` | A `list` of `RspConstruct`:s and `RspDocument`:s.
`...` | Arguments passed to `RspObject`.

### Fields and Methods

Methods:

| `[` | -
| `[<-` | -
| `asRspString` | -
| `dropEmptyText` | Drops all empty RSP text constructs.
| `evaluate` | Parses, translates, and evaluates the RSP document.
| `flatten` | Flattens an RspDocument.
| `getPath` | Gets the path to the source reference of an RSP string.
| `getSource` | Gets the source reference of an RSP document.
| `getType` | Gets the type of the RspDocument.
| `mergeTexts` | Merge neighboring 'text' elements.
| `parseCutNPasteDirectives` | -
| `parseIfElseDirectives` | -
| `preprocess` | Processes all RSP preprocessing directives.
| `print` | -
| `rcat` | -
| `rclean` | -
| `rcode` | -
| `rcompile` | -
| `rfile` | -
| `rsource` | -
| `rstring` | -
| `subset` | Subsets an RspDocument.
| `toR` | Translates the RSP document into R source code.
| `trim` | Trims each of the RSP constructs.
| `trimNonText` | Trims all non-text RSP constructs.

Methods inherited from RspObject:
print

Methods inherited from list:
all.equal, as.data.frame, attachLocally, relist, within

### Author(s)

Henrik Bengtsson

[Package R.rsp version 0.41.0 Index]