Learn R Programming

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

R.rsp (version 0.4.9)

R Server Pages

Description

An R Server Page (RSP) is a document that contains both text in a format of choice (HTML, TeX, Rnw, ...) as well as R source code within special tags. An RSP file can be translated into a so called R servlet, which is an R script that outputs the final document when sourced. This way documents in any format can be generated dynamically using R, e.g. automatic reports of statistical analysis. Utilizing an internal cross-platform web server, this package provides dynamic help pages in HTML. If other packages provide RSP help pages, these are automatically linked to in the RSP main menu.

Copy Link

Version

Install

install.packages('R.rsp')

Monthly Downloads

15,488

Version

0.4.9

License

LGPL (>= 2.1)

Maintainer

Henrik Bengtsson

Last Published

April 5th, 2011

Functions in R.rsp (0.4.9)

appendRootPaths.HttpDaemon

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

Flushes the buffer of an HttpDaemonRspResponse to the HttpDaemon
HtmlRspLanguage

The HtmlRspLanguage class
getName.FileRspResponse

Gets the (base)name of the current RSP file
openUrl.HttpDaemon

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

Gets the port number on which this request was received
RspPage

The RspPage class
getVerbatim.HtmlRspLanguage

Gets a verbatim string specifically for the HTML language
escape.HtmlRspLanguage

Escapes a string specifically for the HTML language
HttpDaemon

The HttpDaemon class
getAbsolutePath.RspPage

Gets the absolute pathname to the current RSP file
FileRspResponse

The FileRspResponse class
getDefaultFilename.HttpDaemon

Gets the default filename to be loaded by the HTTP daemon
escape.RspLanguage

Escapes a string specifically for a given RSP response language
browseRsp

Starts the internal web browser and opens the URL in the default web browser
getProtocol.HttpRequest

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

Flushes the response buffer
getRootPaths.HttpDaemon

Gets the root directories of the HTTP daemon
getComment.HtmlRspLanguage

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

Gets the output for an RSP response
RspLanguage

The RspLanguage class
getHttpRequest.HttpDaemon

Gets the HTTP request
startHelp.HttpDaemon

Starts the HTTP daemon and launches the help page
restart.HttpDaemon

Restarts the HTTP daemon
getComment.RspLanguage

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

Returns a short string describing the HTTP daemon
stop.HttpDaemon

Stops the HTTP daemon
sourceTcl.HttpDaemon

Loads the Tcl source for the HTTP daemon into R
sourceRsp

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

Flushes the response buffer
getRemoteHost.HttpRequest

Gets the fully qualified name of the client that sent the request
getVerbatim.RspLanguage

Gets a verbatim string specific for a given RSP response language
R.rsp-package

Package R.rsp
getConfig.HttpDaemon

Retrieves the server's 'config' structure from Tcl
getContentLength.HttpRequest

Gets the length of contents
as.character.HttpRequest

Returns a short string describing the HTTP request
HttpDaemonRspResponse

The HttpDaemonRspResponse class
importRsp

Imports an RSP file
getScheme.HttpRequest

Gets the scheme used to make this request
getAbsolutePath.FileRspResponse

Gets the absolute pathname to the current RSP file
getLanguage.RspLanguage

Gets the language string
setRootPaths.HttpDaemon

Sets a new set of root directories for the HTTP daemon
getParameter.HttpRequest

Gets a parameter
translateRsp

Translates an RSP file to an R RSP source file
write.RspResponse

Writes an RSP response to the predefined output file
RspResponse

The RspResponse class
getPath.RspPage

Gets the path of the directory of the current RSP file
hasParameter.HttpRequest

Checks if a parameter exists
getRealPath.HttpRequest

Gets the file system path for a given URI
HttpRequest

The HttpRequest class
indexOfNonQuoted

Gets the first index of a string that is not inside a double qouted string
getPort.HttpDaemon

Gets the socket port of the HTTP daemon
getRemoteAddress.HttpRequest

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

Starts the HTTP daemon
writeResponse.HttpDaemon

Writes a string to the HTTP output connection
getPath.FileRspResponse

Gets the path of the directory of the current RSP file
getContentType.HttpRequest

Gets the MIME type of the body of the request
parseRsp

Parse an RSP code string to an R RSP code string
getParameters.HttpRequest

Gets all parameters
getName.RspPage

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

Gets the host name of the server that revieved the request
write.FileRspResponse

Writes an RSP response to the predefined output file
isStarted.HttpDaemon

Checks if the HTTP daemon is started
nbrOfParameters.HttpRequest

Gets the number of parameters
translateRspV1

Translates an RSP file to an R servlet
getNewline.RspLanguage

Gets the newline string specific for a given RSP response language
Non-documented objects

Non-documented objects
processRsp.HttpDaemon

Processes an RSP page
write.HttpDaemonRspResponse

Writes strings to an HttpDaemonRspResponse buffer
sourceAllRsp

Processes one or several RSP files
rspToHtml

Compiles an RSP file to an HTML file
rsptex

Compiles an RSP LaTeX file into a DVI file
import.RspResponse

Imports the output from another RSP file