R.rsp v0.7.5
Monthly downloads
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, e.g.
"\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%>>>= [...] @". As explained in one of the
vignettes, RSP-embedded LaTeX vignettes can easily be included
in any R package. 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 | |
rsptex | Compiles an RSP LaTeX file into a DVI file | |
toLatex.character | Escapes character strings to become LaTeX compatible | |
sourceRsp | Processes an RSP file by translating it to an R servlet, which is then sourced | |
browseRsp | Starts the internal web browser and opens the URL in the default web browser | |
sourceAllRsp | Processes one or several RSP files | |
getPath.FileRspResponse | Gets the path of the directory of the current RSP file | |
writeResponse.HttpDaemon | Writes a string to the HTTP output connection | |
getScheme.HttpRequest | Gets the scheme used to make this request | |
getLanguage.RspLanguage | Gets the language string | |
getDefaultFilename.HttpDaemon | Gets the default filename to be loaded by the HTTP daemon | |
openUrl.HttpDaemon | Starts the HTTP daemon and launches the specified URL | |
rsp | Compiles an RSP document | |
getServerName.HttpRequest | Gets the host name of the server that revieved the request | |
start.HttpDaemon | Starts the HTTP daemon | |
translateRsp | Translates an RSP file to an R RSP source file | |
stop.HttpDaemon | Stops the HTTP daemon | |
R.rsp-package | Package R.rsp | |
getAbsolutePath.RspPage | Gets the absolute pathname to the current RSP file | |
indexOfNonQuoted | Gets the first index of a string that is not inside a double qouted string | |
appendRootPaths.HttpDaemon | Appends and inserts new paths to the list of known root directories | |
processRsp.HttpDaemon | Processes an RSP page | |
rspToHtml | Compiles an RSP file to an HTML file | |
getAbsolutePath.FileRspResponse | Gets the absolute pathname to the current RSP file | |
getComment.HtmlRspLanguage | Gets a comment string specifically for the HTML language | |
sourceTcl.HttpDaemon | Loads the Tcl source for the HTTP daemon into R | |
getRemoteAddress.HttpRequest | Gets the IP address of the client that sent the request | |
getRootPaths.HttpDaemon | Gets the root directories of the HTTP daemon | |
RspResponse | The RspResponse class | |
getParameter.HttpRequest | Gets a parameter | |
as.character.HttpDaemon | Returns a short string describing the HTTP daemon | |
flush.HttpDaemonRspResponse | Flushes the buffer of an HttpDaemonRspResponse to the HttpDaemon | |
getHttpRequest.HttpDaemon | Gets the HTTP request | |
getName.FileRspResponse | Gets the (base)name of the current RSP file | |
write.HttpDaemonRspResponse | Writes strings to an HttpDaemonRspResponse buffer | |
HttpRequest | The HttpRequest class | |
write.FileRspResponse | Writes an RSP response to the predefined output file | |
Non-documented objects | Non-documented objects | |
getContentType.HttpRequest | Gets the MIME type of the body of the request | |
compileLaTeX | Compiles a LaTeX file | |
getComment.RspLanguage | Gets a comment string specific for a given RSP response language | |
flush.RspResponse | Flushes the response buffer | |
getVerbatim.HtmlRspLanguage | Gets a verbatim string specifically for the HTML language | |
escape.HtmlRspLanguage | Escapes a string specifically for the HTML language | |
parseRsp | Parse an RSP code string to an R RSP code string | |
getConfig.HttpDaemon | Retrieves the server's 'config' structure from Tcl | |
flush.FileRspResponse | Flushes the response buffer | |
getRealPath.HttpRequest | Gets the file system path for a given URI | |
startHelp.HttpDaemon | Starts the HTTP daemon and launches the help page | |
restart.HttpDaemon | Restarts the HTTP daemon | |
escape.RspLanguage | Escapes a string specifically for a given RSP response language | |
import.RspResponse | Imports the output from another RSP file | |
RspPage | The RspPage class | |
getNewline.RspLanguage | Gets the newline string specific for a given RSP response language | |
hasParameter.HttpRequest | Checks if a parameter exists | |
write.RspResponse | Writes an RSP response to the predefined output file | |
RspLanguage | The RspLanguage class | |
HtmlRspLanguage | The HtmlRspLanguage class | |
getOutput.FileRspResponse | Gets the output for an RSP response | |
HttpDaemonRspResponse | The HttpDaemonRspResponse class | |
getName.RspPage | Gets the (base)name of the current RSP file | |
getPath.RspPage | Gets the path of the directory of the current RSP file | |
getProtocol.HttpRequest | Gets the name and version of the protocol used to make this request | |
getVerbatim.RspLanguage | Gets a verbatim string specific for a given RSP response language | |
getRemoteHost.HttpRequest | Gets the fully qualified name of the client that sent the request | |
FileRspResponse | The FileRspResponse class | |
getParameters.HttpRequest | Gets all parameters | |
getServerPort.HttpRequest | Gets the port number on which this request was received | |
isStarted.HttpDaemon | Checks if the HTTP daemon is started | |
HttpDaemon | The HttpDaemon class | |
translateRspV1 | Translates an RSP file to an R servlet | |
importRsp | Imports an RSP file | |
setRootPaths.HttpDaemon | Sets a new set of root directories for the HTTP daemon | |
getContentLength.HttpRequest | Gets the length of contents | |
compileSweave | Compiles a Sweave file | |
getPort.HttpDaemon | Gets the socket port of the HTTP daemon | |
nbrOfParameters.HttpRequest | Gets the number of parameters | |
as.character.HttpRequest | Returns a short string describing the HTTP request | |
No Results! |
Last month downloads
Details
Date | 2012-03-20 |
License | LGPL (>= 2.1) |
URL | http://www.braju.com/R/ |
LazyLoad | TRUE |
Packaged | 2012-03-20 22:33:05 UTC; hb |
Repository | CRAN |
Date/Publication | 2012-03-21 07:59:26 |
depends | base (>= 2.5.0) , R (>= 2.5.0) , R.oo (>= 1.9.3) , R.utils (>= 1.12.0) |
suggests | tcltk |
Contributors | Henrik Bengtsson |
Include our badge in your README
[](http://www.rdocumentation.org/packages/R.rsp)