R.rsp v0.6.7

0

Monthly downloads

0th

Percentile

Dynamic generation of scientific reports

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, and "\includegraphics{<%=toPDF('Normal', { curve(dnorm, from=-5, to=+5) })%>}". It can also be used to enhance other literate programming languages such as Sweave, e.g. "<<eval=<%=doEval%>>>= [...] @". 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.

Functions in R.rsp

Name Description
getRealPath.HttpRequest Gets the file system path for a given URI
getProtocol.HttpRequest Gets the name and version of the protocol used to make this request
sourceRsp Processes an RSP file by translating it to an R servlet, which is then sourced
HttpDaemon The HttpDaemon class
escape.RspLanguage Escapes a string specifically for a given RSP response language
start.HttpDaemon Starts the HTTP daemon
importRsp Imports an RSP file
sourceTcl.HttpDaemon Loads the Tcl source for the HTTP daemon into R
as.character.HttpRequest Returns a short string describing the HTTP request
flush.FileRspResponse Flushes the response buffer
getOutput.FileRspResponse Gets the output for an RSP response
getServerPort.HttpRequest Gets the port number on which this request was received
escape.HtmlRspLanguage Escapes a string specifically for the HTML language
R.rsp-package Package R.rsp
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
indexOfNonQuoted Gets the first index of a string that is not inside a double qouted string
write.RspResponse Writes an RSP response to the predefined output file
processRsp.HttpDaemon Processes an RSP page
HttpRequest The HttpRequest class
flush.HttpDaemonRspResponse Flushes the buffer of an HttpDaemonRspResponse to the HttpDaemon
RspLanguage The RspLanguage class
browseRsp Starts the internal web browser and opens the URL in the default web browser
getVerbatim.HtmlRspLanguage Gets a verbatim string specifically for the HTML language
rspToHtml Compiles an RSP file to an HTML file
getLanguage.RspLanguage Gets the language string
getScheme.HttpRequest Gets the scheme used to make this request
getComment.RspLanguage Gets a comment string specific for a given RSP response language
getPath.FileRspResponse Gets the path of the directory of the current RSP file
RspResponse The RspResponse class
HtmlRspLanguage The HtmlRspLanguage class
RspPage The RspPage class
getComment.HtmlRspLanguage Gets a comment string specifically for the HTML language
getContentType.HttpRequest Gets the MIME type of the body of the request
write.HttpDaemonRspResponse Writes strings to an HttpDaemonRspResponse buffer
getServerName.HttpRequest Gets the host name of the server that revieved the request
HttpDaemonRspResponse The HttpDaemonRspResponse class
getConfig.HttpDaemon Retrieves the server's 'config' structure from Tcl
hasParameter.HttpRequest Checks if a parameter exists
nbrOfParameters.HttpRequest Gets the number of parameters
setRootPaths.HttpDaemon Sets a new set of root directories for the HTTP daemon
getContentLength.HttpRequest Gets the length of contents
getAbsolutePath.RspPage Gets the absolute pathname to the current RSP file
translateRspV1 Translates an RSP file to an R servlet
getName.FileRspResponse Gets the (base)name of the current RSP file
getNewline.RspLanguage Gets the newline string specific for a given RSP response language
compileLaTeX Compiles a LaTeX file
getPort.HttpDaemon Gets the socket port of the HTTP daemon
getVerbatim.RspLanguage Gets a verbatim string specific for a given RSP response language
stop.HttpDaemon Stops the HTTP daemon
sourceAllRsp Processes one or several RSP files
openUrl.HttpDaemon Starts the HTTP daemon and launches the specified URL
getAbsolutePath.FileRspResponse Gets the absolute pathname to the current RSP file
restart.HttpDaemon Restarts the HTTP daemon
writeResponse.HttpDaemon Writes a string to the HTTP output connection
rsp Compiles an RSP document
getHttpRequest.HttpDaemon Gets the HTTP request
getParameter.HttpRequest Gets a parameter
parseRsp Parse an RSP code string to an R RSP code string
getName.RspPage Gets the (base)name of the current RSP file
flush.RspResponse Flushes the response buffer
getDefaultFilename.HttpDaemon Gets the default filename to be loaded by the HTTP daemon
startHelp.HttpDaemon Starts the HTTP daemon and launches the help page
getRootPaths.HttpDaemon Gets the root directories of the HTTP daemon
getPath.RspPage Gets the path of the directory of the current RSP file
FileRspResponse The FileRspResponse class
rsptex Compiles an RSP LaTeX file into a DVI file
as.character.HttpDaemon Returns a short string describing the HTTP daemon
Non-documented objects Non-documented objects
compileSweave Compiles a Sweave file
appendRootPaths.HttpDaemon Appends and inserts new paths to the list of known root directories
getParameters.HttpRequest Gets all parameters
isStarted.HttpDaemon Checks if the HTTP daemon is started
import.RspResponse Imports the output from another RSP file
translateRsp Translates an RSP file to an R RSP source file
write.FileRspResponse Writes an RSP response to the predefined output file
No Results!

Last month downloads

Details

Date 2011-11-06
License LGPL (>= 2.1)
URL http://www.braju.com/R/
LazyLoad TRUE
Packaged 2011-11-06 21:39:09 UTC; hb
Repository CRAN
Date/Publication 2011-11-08 06:54:25

Include our badge in your README

[![Rdoc](http://www.rdocumentation.org/badges/version/R.rsp)](http://www.rdocumentation.org/packages/R.rsp)