R.rsp0.46.0 package

Dynamic Generation of Scientific Reports

000-LB-.RspDocument

Subsets an RspDocument

000.readText

Reads the content of a local or an online text file

appendRootPaths.HttpDaemon

Appends and inserts new paths to the list of known root directories

as.character.HttpDaemon

Returns a short string describing the HTTP daemon

as.character.HttpRequest

Returns a short string describing the HTTP request

as.character.RspStringProduct

Returns a plain character string representation of an RSP string produ...

asRspString.RspConstruct

Recreates an RSP string from an RspConstruct

browseRsp

Starts the internal web browser and opens the URL in the default web b...

buildNonSweaveTexToPdf

Compiles all TeX files into PDFs

buildNonSweaveVignette

Builds a non-Sweave Rnw vignette

buildNonSweaveVignettes

Builds all non-Sweave Rnw vignette

buildPkgIndexHtml

Builds a package index HTML file

buildVignette

Builds a vignette

capabilitiesOf.RRspPackage

Checks which tools are supported

compileAsciiDoc

Compiles an AsciiDoc file

compileAsciiDocNoweb

Compiles an AsciiDoc noweb file

compileKnitr

Compiles a Knitr file

compileLaTeX

Compiles a LaTeX file

compileMarkdown

Compiles a Markdown file

compileRnw

Compiles a Rnw file

compileRsp

Compiles an RSP file

compileSweave

Compiles a Sweave file

dropEmptyText.RspDocument

Drops all empty RSP text constructs

escape.RspLanguage

Escapes a string specifically for a given RSP response language

evaluate.RspDocument

Parses, translates, and evaluates the RSP document

evaluate.RspRSourceCode

Parses and evaluates the R code

evaluate.RspShSourceCode

Evaluates the shell (sh) code

evaluate.RspSourceCode

Evaluates the source code

evaluate.RspString

Parses, translates, and evaluates the RSP string

exprToCode.RspSourceCodeFactory

Translates an RspExpression into source code

FileRspResponse

The FileRspResponse class

findAsciiDoc

Locates the asciidoc executable

findPandoc

Locates the pandoc executable

findProcessor.RspProduct

Locates a processor for an RSP product

flatten.RspDocument

Flattens an RspDocument

flush.RspResponse

Flushes the response buffer

getAbsolutePath.FileRspResponse

Gets the absolute pathname to the current RSP file

getAbsolutePath.RspPage

Gets the absolute pathname to the current RSP file

getAttributes.default

Gets and sets attributes of an object

getCode.RspCode

Gets the source code

getComment.RspComment

Gets the comment

getComment.RspConstruct

Gets the comment of an RSP construct

getComment.RspLanguage

Gets a comment string specific for a given RSP response language

getCompleteCode.RspSourceCodeFactory

Gets the source code header, body, and footer

getConfig.HttpDaemon

Retrieves the server's 'config' structure from Tcl

getContent.RspEvalDirective

Gets the content of the RSP eval directive

getContent.RspIncludeDirective

Gets the content of the RSP include directive

getContent.RspText

Gets the contents of the RSP text

getContentLength.HttpRequest

Gets the length of contents

getContentType.HttpRequest

Gets the MIME type of the body of the request

getDefaultFilenamePattern.HttpDaemon

Gets the default filename pattern to be loaded by the HTTP daemon

getEcho.RspCode

Checks whether the source code should be echoed or not

getFile.RspEvalDirective

Gets the file attribute

getFile.RspIncludeDirective

Gets the file attribute

getHttpRequest.HttpDaemon

Gets the HTTP request

getInclude.RspConstruct

Checks whether an RSP construct will include text to the output or not

getLanguage.RspLanguage

Gets the language string

getLanguage.RspSourceCodeFactory

Gets the language

getName.FileRspResponse

Gets the (base)name of the current RSP file

getName.RspPage

Gets the (base)name of the current RSP file

getNewline.RspLanguage

Gets the newline string specific for a given RSP response language

getOutput.FileRspResponse

Gets the output for an RSP response

getParameter.HttpRequest

Gets a parameter

getParameters.HttpRequest

Gets all parameters

getPath.FileRspResponse

Gets the path of the directory of the current RSP file

getPath.RspDocument

Gets the path to the source reference of an RSP string

getPath.RspPage

Gets the path of the directory of the current RSP file

getPort.HttpDaemon

Gets the socket port of the HTTP daemon

getProtocol.HttpRequest

Gets the name and version of the protocol used to make this request

getRealPath.HttpRequest

Gets the file system path for a given URI

getRemoteAddress.HttpRequest

Gets the IP address of the client that sent the request

getRemoteHost.HttpRequest

Gets the fully qualified name of the client that sent the request

getRootPaths.HttpDaemon

Gets the root directories of the HTTP daemon

getScheme.HttpRequest

Gets the scheme used to make this request

getServerName.HttpRequest

Gets the host name of the server that reviewed the request

getServerPort.HttpRequest

Gets the port number on which this request was received

getSource.RspDocument

Gets the source reference of an RSP document

getSource.RspString

Gets the source reference of an RSP string

getSuffixSpecs.RspConstruct

Gets the suffix specifications

getType.RspDocument

Gets the type of the RspDocument

getType.RspPageDirective

Gets the content type

getType.RspProduct

Gets the type of an RSP product

getType.RspString

Gets the type of an RSP string

getVerbatim.RspIncludeDirective

Checks if verbatim include should be used or not

getVerbatim.RspLanguage

Gets a verbatim string specific for a given RSP response language

getWrap.RspIncludeDirective

Get the wrap length

hasParameter.HttpRequest

Checks if a parameter exists

hasProcessor.RspProduct

Checks whether a processor exist or not for an RSP product

HtmlRspLanguage

The HtmlRspLanguage class

HttpDaemon

The HttpDaemon class

HttpDaemonRspResponse

The HttpDaemonRspResponse class

HttpRequest

The HttpRequest class

indexOfNonQuoted

Gets the first index of a string that is not inside a double quoted st...

isStarted.HttpDaemon

Checks if the HTTP daemon is started

makeSourceCode.RspSourceCodeFactory

Makes a RspSourceCode object

mergeTexts.RspDocument

Merge neighboring 'text' elements

nbrOfLines.RspString

Gets the number of lines in an RSP string

nbrOfParameters.HttpRequest

Gets the number of parameters

Non-documented_objects

Non-documented objects

openUrl.HttpDaemon

Starts the HTTP daemon and launches the specified URL

parseCode.RspRSourceCode

Parses the R code

parseDirective.RspUnparsedDirective

Parses the unknown RSP directive for its class

parseDocument.RspParser

Parse an RSP string into and RSP document

parseDocument.RspString

Parses an RSP string into a RSP document

parseExpression.RspUnparsedExpression

Parses the unknown RSP expression for its class

parseRaw.RspParser

Parses the string into blocks of text and RSP

parseVignette

Parses an Rnw file

parseVignettes

Locates and parses all vignettes

preprocess.RspDocument

Processes all RSP preprocessing directives

print.RspArguments

Prints RSP arguments

print.RspObject

Prints a summary of an RSP object

process.RspProduct

Processes an RSP file product

processRsp.HttpDaemon

Processes an RSP page

R.rsp-package

Package R.rsp

rargs

Gets RSP arguments of an RSP document

rcat

Evaluates an RSP string and outputs the generated string

rclean

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

rcode

Compiles an RSP document and returns the generated source code script

rcompile

Compiles an RSP document

requireAttributes.RspDirective

Asserts that certain attributes exist

restart.HttpDaemon

Restarts the HTTP daemon

rfile

Evaluates and postprocesses an RSP document and outputs the final RSP ...

RRspPackage

The RRspPackage class

RspCode

The RspCode class

RspCodeChunk

The RspCodeChunk class

RspComment

The RspComment class

RspConstruct

The RspConstruct class

RspCutDirective

The RspCopyDirective class

RspDirective

The abstract RspDirective class

RspDocument

The RspDocument class

RspErrorDirective

The RspErrorDirective class

RspEvalDirective

The RspEvalDirective class

RspException

The RspException class

RspExpression

The RspExpression class

RspFileProduct

The RspFileProduct class

RspIfDirective

The RspIfDirective class

RspIncludeDirective

The RspIncludeDirective class

RspLanguage

The RspLanguage class

RspMetaDirective

The RspMetaDirective class

RspObject

The abstract RspObject class

RspPage

The RspPage class

RspPageDirective

The RspPageDirective class

RspParser

The RspParser class

RspProduct

The RspProduct class

RspResponse

The RspResponse class

RspRSourceCode

The RspRSourceCode class

RspRSourceCodeFactory

The RspRSourceCodeFactory class

RspShSourceCode

The RspShSourceCode class

RspShSourceCodeFactory

The RspShSourceCodeFactory class

RspSourceCode

The RspSourceCode class

RspSourceCodeFactory

The RspSourceCodeFactory class

RspString

The RspString class

RspStringProduct

The RspStringProduct class

rspTangle

A tangle function for RSP documents

RspText

The RspText class

RspUnknownDirective

The RspUnknownDirective class

RspUnparsedDirective

The RspUnparsedDirective class

RspUnparsedExpression

The RspUnparsedExpression class

RspVariableDirective

The RspVariableDirective class

RspVoid

The RspVoid class

rspWeave

A weave function for RSP documents

rstring

Evaluates an RSP string and returns the generated string

setRootPaths.HttpDaemon

Sets a new set of root directories for the HTTP daemon

sourceTcl.HttpDaemon

Loads the Tcl source for the HTTP daemon into R

splitUrl

Decomposes a URL into its components

start.HttpDaemon

Starts the HTTP daemon

startHelp.HttpDaemon

Starts the HTTP daemon and launches the help page

subset.RspDocument

Subsets an RspDocument

tangle.RspSourceCode

Drops all text-outputting calls from the source code

terminate.HttpDaemon

Terminates the HTTP daemon

tidy.RspSourceCode

Tidy up the RSP source code

toLatex.character

Escapes character strings to become LaTeX compatible

toR.RspDocument

Translates the RSP document into R source code

toR.RspString

Parses and translates the RSP string into R code

toSourceCode.RspSourceCodeFactory

Translates an RSP document to source code

trim.RspDocument

Trims each of the RSP constructs

trimNonText.RspDocument

Trims all non-text RSP constructs

typeOfRnw

Checks whether an Rnw file is a Sweave or a knitr file

view.RspProduct

Views the RSP product

writeResponse.HttpDaemon

Writes a string to the HTTP output connection

writeResponse.RspResponse

Writes an RSP response to the predefined output

The RSP markup language makes any text-based document come alive. RSP provides a powerful markup for controlling the content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr documents (and more), e.g. 'Today's date is <%=Sys.Date()%>'. Contrary to many other literate programming languages, with RSP it is straightforward to loop over mixtures of code and text sections, e.g. in month-by-month summaries. RSP has also several preprocessing directives for incorporating static and dynamic contents of external files (local or online) among other things. Functions rstring() and rcat() make it easy to process RSP strings, rsource() sources an RSP file as it was an R script, while rfile() compiles it (even online) into its final output format, e.g. rfile('report.tex.rsp') generates 'report.pdf' and rfile('report.md.rsp') generates 'report.html'. RSP is ideal for self-contained scientific reports and R package vignettes. It's easy to use - if you know how to write an R script, you'll be up and running within minutes.

  • Maintainer: Henrik Bengtsson
  • License: LGPL (>= 2.1)
  • Last published: 2024-02-17