Learn R Programming

⚠️There's a newer version (0.46.0) of this package.Take me there.

R.rsp (version 0.6.5)

Dynamic generation of scientific reports

Description

An RSP document is a text-based document containing an R-embedded template of the final document, e.g. "Today's date is <%=Sys.Date()%>". An RSP document is preprocessed, parsed and translated into an R script, which when sourced generates the final document. This way it is possible to dynamically generate reports in plain text, HTML, TeX etc. It can also be used to enhance other literate programming languanges such as Sweave. In addition to RSP, this package also provides an internal cross-platform web server and built-in dynamic RSP-embedded HTML help pages, which can be launched by browseRsp(). If other packages provide RSP help pages, these are automatically linked to as well.

Copy Link

Version

Install

install.packages('R.rsp')

Monthly Downloads

15,488

Version

0.6.5

License

LGPL (>= 2.1)

Maintainer

Henrik Bengtsson

Last Published

November 2nd, 2011

Functions in R.rsp (0.6.5)

as.character.HttpRequest

Returns a short string describing the HTTP request
Non-documented objects

Non-documented objects
RspLanguage

The RspLanguage class
getDefaultFilename.HttpDaemon

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

The HttpDaemon class
getContentType.HttpRequest

Gets the MIME type of the body of the request
appendRootPaths.HttpDaemon

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

Gets the name and version of the protocol used to make this request
as.character.HttpDaemon

Returns a short string describing the HTTP daemon
getRemoteHost.HttpRequest

Gets the fully qualified name of the client that sent the request
getScheme.HttpRequest

Gets the scheme used to make this request
nbrOfParameters.HttpRequest

Gets the number of parameters
getLanguage.RspLanguage

Gets the language string
HtmlRspLanguage

The HtmlRspLanguage class
getName.FileRspResponse

Gets the (base)name of the current RSP file
R.rsp-package

Package R.rsp
getParameters.HttpRequest

Gets all parameters
isStarted.HttpDaemon

Checks if the HTTP daemon is started
stop.HttpDaemon

Stops the HTTP daemon
getName.RspPage

Gets the (base)name of the current RSP file
getServerPort.HttpRequest

Gets the port number on which this request was received
flush.FileRspResponse

Flushes the response buffer
parseRsp

Parse an RSP code string to an R RSP code string
getRootPaths.HttpDaemon

Gets the root directories of the HTTP daemon
HttpRequest

The HttpRequest class
startHelp.HttpDaemon

Starts the HTTP daemon and launches the help page
getAbsolutePath.FileRspResponse

Gets the absolute pathname to the current RSP file
flush.RspResponse

Flushes the response buffer
RspResponse

The RspResponse class
translateRspV1

Translates an RSP file to an R servlet
getConfig.HttpDaemon

Retrieves the server's 'config' structure from Tcl
sourceAllRsp

Processes one or several RSP files
getHttpRequest.HttpDaemon

Gets the HTTP request
HttpDaemonRspResponse

The HttpDaemonRspResponse class
escape.HtmlRspLanguage

Escapes a string specifically for the HTML language
importRsp

Imports an RSP file
translateRsp

Translates an RSP file to an R RSP source file
getParameter.HttpRequest

Gets a parameter
writeResponse.HttpDaemon

Writes a string to the HTTP output connection
getAbsolutePath.RspPage

Gets the absolute pathname to the current RSP file
getComment.HtmlRspLanguage

Gets a comment string specifically for the HTML language
getOutput.FileRspResponse

Gets the output for an RSP response
import.RspResponse

Imports the output from another RSP file
compileSweave

Compiles a Sweave file
getPath.FileRspResponse

Gets the path of the directory of the current RSP file
getPath.RspPage

Gets the path of the directory of the current RSP file
getNewline.RspLanguage

Gets the newline string specific for a given RSP response language
RspPage

The RspPage class
indexOfNonQuoted

Gets the first index of a string that is not inside a double qouted string
flush.HttpDaemonRspResponse

Flushes the buffer of an HttpDaemonRspResponse to the HttpDaemon
sourceTcl.HttpDaemon

Loads the Tcl source for the HTTP daemon into R
FileRspResponse

The FileRspResponse class
getRemoteAddress.HttpRequest

Gets the IP address of the client that sent the request
start.HttpDaemon

Starts the HTTP daemon
compileLaTeX

Compiles a LaTeX file
rsptex

Compiles an RSP LaTeX file into a DVI file
openUrl.HttpDaemon

Starts the HTTP daemon and launches the specified URL
getServerName.HttpRequest

Gets the host name of the server that revieved the request
setRootPaths.HttpDaemon

Sets a new set of root directories for the HTTP daemon
rsp

Compiles an RSP document
getRealPath.HttpRequest

Gets the file system path for a given URI
restart.HttpDaemon

Restarts the HTTP daemon
rspToHtml

Compiles an RSP file to an HTML file
write.RspResponse

Writes an RSP response to the predefined output file
browseRsp

Starts the internal web browser and opens the URL in the default web browser
sourceRsp

Processes an RSP file by translating it to an R servlet, which is then sourced
escape.RspLanguage

Escapes a string specifically for a given RSP response language
getVerbatim.HtmlRspLanguage

Gets a verbatim string specifically for the HTML language
getContentLength.HttpRequest

Gets the length of contents
getComment.RspLanguage

Gets a comment string specific for a given RSP response language
processRsp.HttpDaemon

Processes an RSP page
hasParameter.HttpRequest

Checks if a parameter exists
getVerbatim.RspLanguage

Gets a verbatim string specific for a given RSP response language
getPort.HttpDaemon

Gets the socket port of the HTTP daemon
write.HttpDaemonRspResponse

Writes strings to an HttpDaemonRspResponse buffer
write.FileRspResponse

Writes an RSP response to the predefined output file