Learn R Programming

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

R.rsp (version 0.3.3)

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

16,209

Version

0.3.3

License

LGPL version 2.1 or newer (the releases)

Maintainer

Henrik Bengtsson

Last Published

February 17th, 2024

Functions in R.rsp (0.3.3)

getHttpRequest.HttpDaemon

Gets the HTTP request
getName.FileRspResponse

Gets the (base)name of the current RSP file
Non-documented objects

Non-documented objects
getVerbatim.RspLanguage

Gets a verbatim string specific for a given RSP response language
getComment.HtmlRspLanguage

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

Imports the output from another RSP file
getAbsolutePath.RspPage

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

Gets the MIME type of the body of the request
getRemoteHost.HttpRequest

Gets the fully qualified name of the client that sent the request
flush.FileRspResponse

Flushes the response buffer
as.character.HttpRequest

Returns a short string describing the HTTP request
escape.RspLanguage

Escapes a string specifically for a given RSP response language
rspToHtml

Compiles an RSP file to an HTML file
HtmlRspLanguage

The HtmlRspLanguage class
getName.RspPage

Gets the (base)name of the current RSP file
flush.RspResponse

Flushes the response buffer
getRealPath.HttpRequest

Gets the file system path for a given URI
getPath.FileRspResponse

Gets the path of the directory of the current RSP file
restart.HttpDaemon

Restarts the HTTP daemon
getComment.RspLanguage

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

Escapes a string specifically for the HTML 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
getNewline.RspLanguage

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

The RspLanguage class
processRsp.HttpDaemon

Processes an RSP page
HttpDaemon

The HttpDaemon class
HttpDaemonRspResponse

The HttpDaemonRspResponse class
as.character.HttpDaemon

Returns a short string describing the HTTP daemon
getPath.RspPage

Gets the path of the directory of the current RSP file
R.rsp-package

Package R.rsp
importRsp

Imports an RSP file
getConfig.HttpDaemon

Retrieves the servers 'config' structure from Tcl
RspResponse

The RspResponse class
getScheme.HttpRequest

Gets the scheme used to make this request
getServerName.HttpRequest

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

Starts the HTTP daemon and launches the specified URL
getOutput.FileRspResponse

Gets the output for an RSP response
getContentLength.HttpRequest

Gets the length of contents
getServerPort.HttpRequest

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

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

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

Gets the root directories of the HTTP daemon
startHelp.HttpDaemon

Starts the HTTP daemon and launches the help page
getLanguage.RspLanguage

Gets the language string
sourceRsp

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

Starts the HTTP daemon
stop.HttpDaemon

Stops the HTTP daemon
translateRsp

Translates an RSP file to an R servlet
getParameter.HttpRequest

Gets a parameter
isStarted.HttpDaemon

Checks if the HTTP daemon is started
getAbsolutePath.FileRspResponse

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

Gets all parameters
appendRootPaths.HttpDaemon

Appends and inserts new paths to the list of known root directories
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
nbrOfParameters.HttpRequest

Gets the number of parameters
getRemoteAddress.HttpRequest

Gets the IP address of the client that sent the request
FileRspResponse

The FileRspResponse class
getVerbatim.HtmlRspLanguage

Gets a verbatim string specifically for the HTML language
sourceTcl.HttpDaemon

Loads the Tcl source for the HTTP daemon into R
sourceAllRsp

Processes one or several RSP files
HttpRequest

The HttpRequest class
write.HttpDaemonRspResponse

Writes strings to an HttpDaemonRspResponse buffer
write.FileRspResponse

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

Writes a string to the HTTP output connection
RspPage

The RspPage class
setRootPaths.HttpDaemon

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

Writes an RSP response to the predefined output file
hasParameter.HttpRequest

Checks if a parameter exists