Learn R Programming

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

R.rsp (version 0.3.4)

R Server Pages

Description

An R Server Page (RSP) is a document that contains both text in a format of choice (HTML, TeX, ...) 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.3.4

License

LGPL (>= 2.1)

Maintainer

Henrik Bengtsson

Last Published

February 17th, 2024

Functions in R.rsp (0.3.4)

getAbsolutePath.FileRspResponse

Gets the absolute pathname to the current RSP file
HttpRequest

The HttpRequest class
RspPage

The RspPage class
nbrOfParameters.HttpRequest

Gets the number of parameters
HtmlRspLanguage

The HtmlRspLanguage class
FileRspResponse

The FileRspResponse class
hasParameter.HttpRequest

Checks if a parameter exists
flush.FileRspResponse

Flushes the response buffer
getVerbatim.HtmlRspLanguage

Gets a verbatim string specifically for the HTML language
R.rsp-package

Package R.rsp
getPort.HttpDaemon

Gets the socket port of the HTTP daemon
getRemoteAddress.HttpRequest

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

Writes a string to the HTTP output connection
HttpDaemon

The HttpDaemon class
getConfig.HttpDaemon

Retrieves the servers 'config' structure from Tcl
getNewline.RspLanguage

Gets the newline string specific for a given RSP response language
as.character.HttpRequest

Returns a short string describing the HTTP request
sourceTcl.HttpDaemon

Loads the Tcl source for the HTTP daemon into R
getParameters.HttpRequest

Gets all parameters
indexOfNonQuoted

Gets the first index of a string that is not inside a double qouted string
getVerbatim.RspLanguage

Gets a verbatim string specific for a given RSP response language
getContentLength.HttpRequest

Gets the length of contents
HttpDaemonRspResponse

The HttpDaemonRspResponse class
getContentType.HttpRequest

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

Starts the HTTP daemon
getHttpRequest.HttpDaemon

Gets the HTTP request
escape.RspLanguage

Escapes a string specifically for a given RSP response language
startHelp.HttpDaemon

Starts the HTTP daemon and launches the help page
RspLanguage

The RspLanguage class
flush.HttpDaemonRspResponse

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

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

Gets the port number on which this request was received
browseRsp

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

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

Gets the root directories of the HTTP daemon
Non-documented objects

Non-documented objects
isStarted.HttpDaemon

Checks if the HTTP daemon is started
getComment.RspLanguage

Gets a comment string specific for a given RSP response language
escape.HtmlRspLanguage

Escapes a string specifically for the HTML language
getAbsolutePath.RspPage

Gets the absolute pathname to the current RSP file
getProtocol.HttpRequest

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

Translates an RSP file to an R servlet
getPath.FileRspResponse

Gets the path of the directory of the current RSP file
sourceRsp

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

Restarts the HTTP daemon
getName.RspPage

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

Gets a parameter
rspToHtml

Compiles an RSP file to an HTML file
getPath.RspPage

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

Gets the scheme used to make this request
as.character.HttpDaemon

Returns a short string describing the HTTP daemon
openUrl.HttpDaemon

Starts the HTTP daemon and launches the specified URL
import.RspResponse

Imports the output from another RSP file
setRootPaths.HttpDaemon

Sets a new set of root directories for the HTTP daemon
write.HttpDaemonRspResponse

Writes strings to an HttpDaemonRspResponse buffer
processRsp.HttpDaemon

Processes an RSP page
write.RspResponse

Writes an RSP response to the predefined output file
write.FileRspResponse

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

Stops the HTTP daemon
RspResponse

The RspResponse class
sourceAllRsp

Processes one or several RSP files
getRemoteHost.HttpRequest

Gets the fully qualified name of the client that sent the request
getComment.HtmlRspLanguage

Gets a comment string specifically for the HTML language
flush.RspResponse

Flushes the response buffer
getLanguage.RspLanguage

Gets the language string
getOutput.FileRspResponse

Gets the output for an RSP response
getName.FileRspResponse

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

Gets the default filename to be loaded by the HTTP daemon
getServerName.HttpRequest

Gets the host name of the server that revieved the request
importRsp

Imports an RSP file