| Version: | 0.46.0 |
| Depends: | R (≥ 2.14.0) |
| Imports: | methods, stats, tools, utils, R.methodsS3 (≥ 1.8.0), R.oo (≥1.23.0), R.utils, R.cache, digest |
| Suggests: | tcltk, markdown, knitr, R.devices, base64enc, ascii |
| SuggestsNote: | Recommended: R.devices, base64enc, markdown |
| VignetteBuilder: | R.rsp |
| Title: | Dynamic Generation of Scientific Reports |
| Author: | Henrik Bengtsson [aut, cre, cph] |
| Maintainer: | Henrik Bengtsson <henrikb@braju.com> |
| Description: | The RSP markup language makes any text-based document come alive. RSP provides a powerful markup for controlling the content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr documents (and more), e.g. 'Today's date is <%=Sys.Date()%>'. Contrary to many other literate programming languages, with RSP it is straightforward to loop over mixtures of code and text sections, e.g. in month-by-month summaries. RSP has also several preprocessing directives for incorporating static and dynamic contents of external files (local or online) among other things. Functions rstring() and rcat() make it easy to process RSP strings, rsource() sources an RSP file as it was an R script, while rfile() compiles it (even online) into its final output format, e.g. rfile('report.tex.rsp') generates 'report.pdf' and rfile('report.md.rsp') generates 'report.html'. RSP is ideal for self-contained scientific reports and R package vignettes. It's easy to use - if you know how to write an R script, you'll be up and running within minutes. |
| License: | LGPL-2.1 |LGPL-3 [expanded from: LGPL (≥ 2.1)] |
| URL: | https://henrikbengtsson.github.io/R.rsp/,https://github.com/HenrikBengtsson/R.rsp |
| BugReports: | https://github.com/HenrikBengtsson/R.rsp/issues |
| LazyLoad: | TRUE |
| NeedsCompilation: | no |
| Packaged: | 2024-02-17 16:07:15 UTC; henrik |
| Repository: | CRAN |
| Date/Publication: | 2024-02-17 18:30:02 UTC |
Package R.rsp
Description
The RSP markup language makes any text-based document come alive. RSP provides a powerful markup for controlling the content and output of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr documents (and more), e.g. 'Today's date is <%=Sys.Date()%>'. Contrary to many other literate programming languages, with RSP it is straightforward to loop over mixtures of code and text sections, e.g. in month-by-month summaries. RSP has also several preprocessing directives for incorporating static and dynamic contents of external files (local or online) among other things. Functions rstring() and rcat() make it easy to process RSP strings, rsource() sources an RSP file as it was an R script, while rfile() compiles it (even online) into its final output format, e.g. rfile('report.tex.rsp') generates 'report.pdf' and rfile('report.md.rsp') generates 'report.html'. RSP is ideal for self-contained scientific reports and R package vignettes. It's easy to use - if you know how to write an R script, you'll be up and running within minutes.
Installation
To install this package, callinstall.packages("R.rsp").
To get started
We recommend that you start by reading one of the 'vignettes':
A 5 minute slideshow covering the basics of RSP.
Detailed description of the RSP markup language.
A one-page RSP reference card.
How to use RSP for package vignettes.
How to use plain LaTeX for package vignettes.
How to use static PDF or HTML package vignettes.
Then, when you're ready to try it yourself, these are commands you can start with:
Play with
rcat(), which works likecat() but also processed RSP expressions, e.g.rcat("A random number: <%=sample(100, size=1)%>\n").To source a RSP document as you do with R scripts, use
rsource(), e.g.rsource("report.md.rsp")which will run the RSP and display the output as it appears.To compile a RSP document to a final document, use
rfile(), e.g.rfile("report.md.rsp")outputs Markdown file 'report.md' which is automatically compiled into a final 'report.html'.
Acknowledgments
Several of the post-processing features of this package utilizepackages such asbase64enc,knitr, andmarkdown.Not enough credit can be given to the authors and contributorsof those packages. Thank you for your great work.
License
The releases of this package is licensed underLGPL version 2.1 or newer.
The development code of the packages is under a private licence(where applicable) and patches sent to the author fall under thelatter license, but will be, if incorporated, released under the"release" license above.
How to cite this package
Bengtsson H (2024).R.rsp: Dynamic Generation of Scientific Reports.R package version 0.46.0,https://github.com/HenrikBengtsson/R.rsp,https://henrikbengtsson.github.io/R.rsp/.
Author(s)
Henrik Bengtsson
Reads the content of a local or an online text file
Description
Reads the content of a local or an online text file.
Usage
.readText(con, ..., maxAge=getOption("R.rsp::downloadIfOlderThan", -Inf))Arguments
con | A |
... | Not used. |
maxAge | A |
Value
Returns acharacter string.
Caching URL
When reading online URLs, it may take time a significant time toread its content. If the content is changing rarely, it is possibleto cache the content locally. If a cached version is found, then itis read instead.It is possible to control how often a file should be recached. If thecache is older than argumentmaxAge (in seconds), then the fileis redownloaded and recached.
Newline substitution
All occurrences of\r\n and\r are replaced with\n such that all lines are ending in\n regardlessof encoding.
Author(s)
Henrik Bengtsson
The FileRspResponse class
Description
Package: R.rsp
Class FileRspResponse
Object~~|~~+--RspResponse~~~~~~~|~~~~~~~+--FileRspResponse
Directly known subclasses:
HttpDaemonRspResponse
public static classFileRspResponse
extendsRspResponse
Usage
FileRspResponse(file=stdout(), path=NULL, overwrite=FALSE, ...)Arguments
file | A filename or a |
path | An optional path to the file. |
overwrite | If |
... | Not used. |
Fields and Methods
Methods:
flush | - | |
getAbsolutePath | Gets the absolute pathname to the current RSP file. | |
getName | Gets the (base)name of the current RSP file. | |
getOutput | Gets the output for an RSP response. | |
getPath | Gets the path of the directory of the current RSP file. | |
writeResponse | - | |
Methods inherited from RspResponse:
flush, writeResponse
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
The HtmlRspLanguage class
Description
Package: R.rsp
Class HtmlRspLanguage
Object~~|~~+--RspLanguage~~~~~~~|~~~~~~~+--HtmlRspLanguage
Directly known subclasses:
public static classHtmlRspLanguage
extendsRspLanguage
Usage
HtmlRspLanguage(...)Arguments
... | Arguments passed to the constructor of the |
Fields and Methods
Methods:
escape | - | |
getComment | - | |
getVerbatim | - | |
Methods inherited from RspLanguage:
escape, getComment, getLanguage, getNewline, getVerbatim
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
The HttpDaemon class
Description
Package: R.rsp
Class HttpDaemon
Object~~|~~+--HttpDaemon
Directly known subclasses:
public static classHttpDaemon
extendsObject
A minimalistic HTTP daemon (web server) that also preprocesses RSP.
Usage
HttpDaemon(...)Arguments
... | Not used. |
Details
The actual server is written in Tcl such that it runs in a non-blockingmode, which means that the R prompt will be available for other things.This class is tightly coupled with the source code of the Tcl script.
For security reasons, the server only accept connections from thelocal host (127.0.0.1). This lowers the risk for external computersto gain access to the R session.This is asserted by theaccept_connect Tcl procedure inr-httpd.tcl (located insystem.file("tcl/", package="R.rsp")).If access from other hosts are wanted, then this procedure needs tobe modified.
The Tcl server was written by Steve Uhlers, and later adopted for R byPhilippe Grosjean and Tom Short (Rpad package author) [1].
Fields and Methods
Methods:
appendRootPaths | Appends and inserts new paths to the list of known root directories. | |
as.character | Returns a short string describing the HTTP daemon. | |
finalize | - | |
getConfig | Retrieves the server's 'config' structure from Tcl. | |
getCount | - | |
getDefaultFilenamePattern | Gets the default filename pattern to be loaded by the HTTP daemon. | |
getHttpRequest | Gets the HTTP request. | |
getPort | Gets the socket port of the HTTP daemon. | |
getRootPaths | Gets the root directories of the HTTP daemon. | |
insertRootPaths | - | |
isStarted | Checks if the HTTP daemon is started. | |
openUrl | Starts the HTTP daemon and launches the specified URL. | |
processRsp | Processes an RSP page. | |
restart | Restarts the HTTP daemon. | |
setCount | - | |
setRootPaths | Sets a new set of root directories for the HTTP daemon. | |
sourceTcl | Loads the Tcl source for the HTTP daemon into R. | |
start | Starts the HTTP daemon. | |
startHelp | Starts the HTTP daemon and launches the help page. | |
terminate | Terminates the HTTP daemon. | |
writeResponse | Writes a string to the HTTP output connection. | |
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
References
[1] Rpad package, Tom Short, 2005.
Examples
if (interactive()) { if (!HttpDaemon$isStarted()) { # Start the web server rootPath <- system.file("rsp", package="R.rsp") HttpDaemon$start(rootPath=rootPath, port=8074, default="^index[.](html|.*)$") } browseURL("http://127.0.0.1:8074/")}Appends and inserts new paths to the list of known root directories
Description
Appends and inserts new paths to the list of known root directories, if started.
Usage
## Static method (use this):## HttpDaemon$appendRootPaths(paths, ...)## Don't use the below:## S3 method for class 'HttpDaemon'appendRootPaths(static, paths, ...)Arguments
paths | A |
... | Not used. |
Value
Returns (invisibly) the previously known root directories.
Author(s)
Henrik Bengtsson
See Also
*getRootPaths()For more information seeHttpDaemon.
Retrieves the server's 'config' structure from Tcl
Description
Retrieves the server's 'config' structure from Tcl.
Usage
## Static method (use this):## HttpDaemon$getConfig(...)## Don't use the below:## S3 method for class 'HttpDaemon'getConfig(static, ...)Arguments
... | Not used. |
Value
Returns a tclArray object.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Gets the default filename pattern to be loaded by the HTTP daemon
Description
Gets the default filename pattern to be loaded by the HTTP daemon, if started.
Usage
## Static method (use this):## HttpDaemon$getDefaultFilenamePattern(...)## Don't use the below:## S3 method for class 'HttpDaemon'getDefaultFilenamePattern(static, ...)Arguments
... | Not used. |
Value
Returns ancharacter string if started, otherwiseNA.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Gets the HTTP request
Description
Gets the HTTP request.
Usage
## Static method (use this):## HttpDaemon$getHttpRequest(...)## Don't use the below:## S3 method for class 'HttpDaemon'getHttpRequest(static, ...)Arguments
... | Not used. |
Value
Returns aHttpRequest object.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Gets the socket port of the HTTP daemon
Description
Gets the socket port of the HTTP daemon, if started.
Usage
## Static method (use this):## HttpDaemon$getPort(...)## Don't use the below:## S3 method for class 'HttpDaemon'getPort(static, ...)Arguments
... | Not used. |
Value
Returns aninteger if started, otherwiseNA.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Gets the root directories of the HTTP daemon
Description
Gets the root directories of the HTTP daemon.
Usage
## Static method (use this):## HttpDaemon$getRootPaths(...)## Don't use the below:## S3 method for class 'HttpDaemon'getRootPaths(static, ...)Arguments
... | Not used. |
Value
Returns avector ofcharacter string if started, otherwiseNA.
Author(s)
Henrik Bengtsson
See Also
*setRootPaths()*appendRootPaths()For more information seeHttpDaemon.
Checks if the HTTP daemon is started
Description
Checks if the HTTP daemon is started.
Usage
## Static method (use this):## HttpDaemon$isStarted(...)## Don't use the below:## S3 method for class 'HttpDaemon'isStarted(x, ...)Arguments
... | Not used. |
Value
ReturnsTRUE if the server is started, otherwiseFALSE.
Author(s)
Henrik Bengtsson
See Also
*start() and*terminate().For more information seeHttpDaemon.
Processes an RSP page
Description
Processes an RSP page.
Usage
## Static method (use this):## HttpDaemon$processRsp(pathname=tcltk::tclvalue("mypath"),## version=getOption("R.rsp/HttpDaemon/RspVersion", "1.0.0"), ...)## Don't use the below:## S3 method for class 'HttpDaemon'processRsp(static=getStaticInstance(HttpDaemon), pathname=tcltk::tclvalue("mypath"), version=getOption("R.rsp/HttpDaemon/RspVersion", "1.0.0"), ...)Arguments
pathname | The RSP file to be processed. |
version | The version of the RSP processor to use. |
... | Not used. |
Value
Returns nothing.
Settings
TheR.rsp package implements different RSP engines.It is possible to specify which version the Tcl HTTP daemonshould use via the optionR.rsp/HttpDaemon/RspVersion.The default is now to use the new RSP engine, which correspondsoptions("R.rsp/HttpDaemon/RspVersion"="1.0.0").The old legacy RSP engine"0.1.0" is defunct.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Restarts the HTTP daemon
Description
Restarts the HTTP daemon.
Usage
## Static method (use this):## HttpDaemon$restart(...)## Don't use the below:## S3 method for class 'HttpDaemon'restart(static, ...)Arguments
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
*isStarted().*start().*terminate().For more information seeHttpDaemon.
Sets a new set of root directories for the HTTP daemon
Description
Sets a new set of root directories for the HTTP daemon, if started.
Usage
## Static method (use this):## HttpDaemon$setRootPaths(paths, ...)## Don't use the below:## S3 method for class 'HttpDaemon'setRootPaths(static, paths, ...)Arguments
paths | A |
... | Not used. |
Value
Returns (invisibly) the previously known root directories.
Author(s)
Henrik Bengtsson
See Also
*getRootPaths()*appendRootPaths()For more information seeHttpDaemon.
Loads the Tcl source for the HTTP daemon into R
Description
Loads the Tcl source for the HTTP daemon into R.
Usage
## Static method (use this):## HttpDaemon$sourceTcl(...)## Don't use the below:## S3 method for class 'HttpDaemon'sourceTcl(static, ...)Arguments
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Starts the HTTP daemon
Description
Starts the HTTP daemon. Currently, only one HTTP daemon can run at each time,regardless of port used.
Usage
## Static method (use this):## HttpDaemon$start(rootPaths=NULL, port=8080, default="^index[.](html|.*)$", ...)## Don't use the below:## S3 method for class 'HttpDaemon'start(x, rootPaths=NULL, port=8080, default="^index[.](html|.*)$", ...)Arguments
rootPaths | The path(s) to act as the root of the web server filesystem. Files in parent directories of the root, will not beaccessible. If |
port | The socket port the server listens to. |
default | The default filename pattern to be retrieved ifnot specified. |
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
*setRootPaths().*isStarted().*terminate().*restart().For more information seeHttpDaemon.
Terminates the HTTP daemon
Description
Terminates the HTTP daemon.
Usage
## Static method (use this):## HttpDaemon$terminate(...)## Don't use the below:## S3 method for class 'HttpDaemon'terminate(static, ...)Arguments
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
*isStarted().*start().*restart().For more information seeHttpDaemon.
The HttpDaemonRspResponse class
Description
Package: R.rsp
Class HttpDaemonRspResponse
Object~~|~~+--RspResponse~~~~~~~|~~~~~~~+--FileRspResponse~~~~~~~~~~~~|~~~~~~~~~~~~+--HttpDaemonRspResponse
Directly known subclasses:
public static classHttpDaemonRspResponse
extendsFileRspResponse
An instance of class HttpDaemonRspResponse, which extends theRspResponse class, is a buffer for output (response) sent to anHttpDaemon. It provides a methodwriteResponse() for writingoutput and a methodflush() for flush the written output tothe HTTP daemon.
Usage
HttpDaemonRspResponse(httpDaemon=NULL, ...)Arguments
httpDaemon | An |
... | Not used. |
Details
The purpose of this method is to provide partial writing of HTTP responsesuch that, for instance, a web browser can display parts of an HTML pagewhile the rest is generated. Note that this is only supported by theHTTP v1.1 protocol.
Note:The minimalistic HTTP daemon (written in Tcl) used internallycurrently only supports HTTP v1.0. In other words, although this classis used already, the output is only flushed at the end.
Fields and Methods
Methods:
flush | - | |
writeResponse | - | |
Methods inherited from FileRspResponse:
flush, getAbsolutePath, getName, getOutput, getPath, writeResponse
Methods inherited from RspResponse:
flush, writeResponse
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
See Also
The HttpRequest class
Description
Package: R.rsp
Class HttpRequest
Object~~|~~+--HttpRequest
Directly known subclasses:
public static classHttpRequest
extendsObject
Usage
HttpRequest(requestUri=NULL, parameters=list(), ...)Arguments
requestUri | A |
parameters | A named |
... | Not used. |
Fields and Methods
Methods:
as.character | Returns a short string describing the HTTP request. | |
getContentLength | Gets the length of contents. | |
getContentType | Gets the MIME type of the body of the request. | |
getContextPath | - | |
getDateHeader | - | |
getHeader | - | |
getParameter | Gets a parameter. | |
getParameters | Gets all parameters. | |
getProtocol | Gets the name and version of the protocol used to make this request. | |
getQueryString | - | |
getRealPath | Gets the file system path for a given URI. | |
getRemoteAddress | Gets the IP address of the client that sent the request. | |
getRemoteHost | Gets the fully qualified name of the client that sent the request. | |
getRemoteUser | - | |
getRequestUri | - | |
getRequestUrl | - | |
getScheme | Gets the scheme used to make this request. | |
getServerName | Gets the host name of the server that reviewed the request. | |
getServerPort | Gets the port number on which this request was received. | |
getServletPath | - | |
hasParameter | Checks if a parameter exists. | |
nbrOfParameters | Gets the number of parameters. | |
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
Non-documented objects
Description
This page contains aliases for all "non-documented" objects thatR CMD check detects in this package.
Almost all of them aregeneric functions that have specificdocument for the corresponding method coupled to a specific class.Other functions are re-defined bysetMethodS3() todefault methods. Neither of these two classes are non-documentedin reality.The rest are deprecated methods.
Author(s)
Henrik Bengtsson
The RRspPackage class
Description
Package: R.rsp
Class RRspPackage
Object~~|~~+--Package~~~~~~~|~~~~~~~+--RRspPackage
Directly known subclasses:
public static classRRspPackage
extendsPackage
Usage
RRspPackage(...)Arguments
... | Not used. |
Fields and Methods
Methods:
capabilitiesOf | Checks which tools are supported. | |
isCapableOf | - | |
Methods inherited from Package:
as.character, getAuthor, getBundle, getBundlePackages, getChangeLog, getClasses, getContents, getDataPath, getDate, getDescription, getDescriptionFile, getDocPath, getEnvironment, getExamplePath, getHistory, getHowToCite, getLicense, getMaintainer, getName, getNews, getPath, getPosition, getTitle, getUrl, getVersion, isLoaded, isOlderThan, ll, load, showChangeLog, showContents, showDescriptionFile, showHistory, showHowToCite, showNews, startupMessage, unload
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
Checks which tools are supported
Description
Checks which tools are supported.
Usage
## Static method (use this):## RRspPackage$capabilitiesOf(what=NULL, force=FALSE, ...)## Don't use the below:## S3 method for class 'RRspPackage'capabilitiesOf(static, what=NULL, force=FALSE, ...)Arguments
what | |
force | If |
... | Not used. |
Value
Returns alogical namedcharactervector.
Author(s)
Henrik Bengtsson
Examples
# Display which tools are supported by the packageprint(capabilitiesOf(R.rsp))# Check whether AsciiDoc is supportedprint(isCapableOf(R.rsp, "asciidoc"))# Check whether pandoc v1.12 or newer is supportedprint(isCapableOf(R.rsp, "pandoc (>= 1.12)"))The RspCode class
Description
Package: R.rsp
Class RspCode
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspExpression~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspCode
Directly known subclasses:
RspCodeChunk
public classRspCode
extendsRspExpression
An RspCode is anRspExpression that represents a piece of sourcecode, which may or may not be a complete code chunk (expression).
Usage
RspCode(code=character(), echo=FALSE, ...)Arguments
code | A |
echo | If |
... | Not used. |
Fields and Methods
Methods:
asRspString | - | |
getCode | Gets the source code. | |
getEcho | Checks whether the source code should be echoed or not. | |
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspCodeChunk class
Description
Package: R.rsp
Class RspCodeChunk
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspExpression~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspCode~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~+--RspCodeChunk
Directly known subclasses:
public classRspCodeChunk
extendsRspCode
An RspCodeChunk is anRspCode that represents a completeRSP code chunk.
Usage
RspCodeChunk(..., return=FALSE)Arguments
... | Arguments passed to the constructor of |
return | If |
Fields and Methods
Methods:
asRspString | - | |
getInclude | - | |
Methods inherited from RspCode:
asRspString, getCode, getEcho
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspComment class
Description
Package: R.rsp
Class RspComment
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspComment
Directly known subclasses:
public classRspComment
extendsRspConstruct
An RspComment is anRspConstruct that represents an RSP comment,which are of format<%-- ... --%>,<%--- ... ---%>and so on. They can also be so called "empty" RSP comments of format<%-%>,<%--%>,<%---%> and so on.
Usage
RspComment(str=character(), ...)Arguments
str | A |
... | Not used. |
Fields and Methods
Methods:
asRspString | - | |
getComment | Gets the comment. | |
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspConstruct class
Description
Package: R.rsp
Class RspConstruct
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct
Directly known subclasses:
RspCode,RspCodeChunk,RspComment,RspCopyDirective,RspCutDirective,RspDirective,RspElseDirective,RspEndcopyDirective,RspEndcutDirective,RspEndifDirective,RspErrorDirective,RspEvalDirective,RspExpression,RspIfDirective,RspIfeqDirective,RspIfneqDirective,RspIncludeDirective,RspIntegerDirective,RspLogicalDirective,RspMetaDirective,RspNumericDirective,RspPageDirective,RspPasteDirective,RspStringDirective,RspText,RspUnknownDirective,RspUnparsedDirective,RspUnparsedExpression,RspVariableDirective,RspVoid
public classRspConstruct
extendsRspObject
An RspConstruct object represents an RSP construct, which can either be(i) an RSP text (a plain text section), (ii) an RSP comment,(iii) an RSP preprocessing directive, or (iv) an RSP expression.
Usage
RspConstruct(object=character(), ..., comment=NULL)Arguments
object | A R object. |
... | Arguments passed to |
comment | An optional |
Fields and Methods
Methods:
asRspString | Recreates an RSP string from an RspConstruct. | |
getComment | Gets the comment of an RSP construct. | |
getInclude | Checks whether an RSP construct will include text to the output or not. | |
getSuffixSpecs | Gets the suffix specifications. | |
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspCopyDirective class
Description
Package: R.rsp
Class RspCutDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspCutDirective
Directly known subclasses:
RspCopyDirective
public classRspCutDirective
extendsRspDirective
An RspCutDirective and RspPasteDirective areRspDirective that will copy, cut, and paste a set ofRspConstruct:s.
Usage
RspCutDirective(value="cut", ..., .validate=TRUE)Arguments
value | A |
... | Additional arguments passed to |
.validate | A |
Fields and Methods
Methods:
No methods defined.
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The abstract RspDirective class
Description
Package: R.rsp
Class RspDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective
Directly known subclasses:
RspCopyDirective,RspCutDirective,RspElseDirective,RspEndcopyDirective,RspEndcutDirective,RspEndifDirective,RspErrorDirective,RspEvalDirective,RspIfDirective,RspIfeqDirective,RspIfneqDirective,RspIncludeDirective,RspIntegerDirective,RspLogicalDirective,RspMetaDirective,RspNumericDirective,RspPageDirective,RspPasteDirective,RspStringDirective,RspUnknownDirective,RspUnparsedDirective,RspVariableDirective
public classRspDirective
extendsRspConstruct
An RspDirective is anRspConstruct that represents anRSP preprocessing directive of format<%@ ... %>.The directive is independent of the underlying programming language.
Usage
RspDirective(value=character(), ...)Arguments
value | A |
... | Arguments passed to the constructor of |
Fields and Methods
Methods:
asRspString | - | |
getNameContentDefaultAttributes | - | |
requireAttributes | Asserts that certain attributes exist. | |
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspDocument class
Description
Package: R.rsp
Class RspDocument
list~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspDocument
Directly known subclasses:
public classRspDocument
extendsRspObject
An RspDocument represents alist ofRspConstruct:s.
Usage
RspDocument(expressions=list(), ...)Arguments
expressions | A |
... | Arguments passed to |
Fields and Methods
Methods:
[ | - | |
[<- | - | |
asRspString | - | |
dropEmptyText | Drops all empty RSP text constructs. | |
evaluate | Parses, translates, and evaluates the RSP document. | |
flatten | Flattens an RspDocument. | |
getPath | Gets the path to the source reference of an RSP string. | |
getSource | Gets the source reference of an RSP document. | |
getType | Gets the type of the RspDocument. | |
mergeTexts | Merge neighboring 'text' elements. | |
parseCutNPasteDirectives | - | |
parseIfElseDirectives | - | |
preprocess | Processes all RSP preprocessing directives. | |
print | - | |
rcat | - | |
rclean | - | |
rcode | - | |
rcompile | - | |
rfile | - | |
rsource | - | |
rstring | - | |
subset | Subsets an RspDocument. | |
toR | Translates the RSP document into R source code. | |
trim | Trims each of the RSP constructs. | |
trimNonText | Trims all non-text RSP constructs. | |
Methods inherited from RspObject:
print
Methods inherited from list:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.data.frame, attachLocally, coerce,ANY,list-method, relist, type.convert, within
Author(s)
Henrik Bengtsson
The RspErrorDirective class
Description
Package: R.rsp
Class RspErrorDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspErrorDirective
Directly known subclasses:
public classRspErrorDirective
extendsRspDirective
An RspErrorDirective is anRspDirective that generates anRSP preprocessing error (if processed).
Usage
RspErrorDirective(value="error", ...)Arguments
value | A |
... | Arguments passed to the constructor of |
Fields and Methods
Methods:
No methods defined.
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspEvalDirective class
Description
Package: R.rsp
Class RspEvalDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspEvalDirective
Directly known subclasses:
public classRspEvalDirective
extendsRspDirective
An RspEvalDirective is anRspDirective that causes theRSP parser to evaluate a piece of R code (either in a text stringor in a file) as it is being parsed.
Usage
RspEvalDirective(value="eval", ...)Arguments
value | A |
... | Optional arguments passed to the constructorof |
Fields and Methods
Methods:
getContent | Gets the content of the RSP eval directive. | |
getFile | Gets the file attribute. | |
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspException class
Description
Package: R.rsp
Class RspException
Object~~|~~+--try-error~~~~~~~|~~~~~~~+--condition~~~~~~~~~~~~|~~~~~~~~~~~~+--error~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--simpleError~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~+--Exception~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~+--RspException
Directly known subclasses:
RspParseException,RspPreprocessingException
public static classRspException
extendsException
An RspException is anException that is thrown duringthe processing of an RSP document.
Usage
RspException(...)Arguments
... | Not used. |
Fields and Methods
Methods:
No methods defined.
Methods inherited from Exception:
as.character, getCall, getCalls, getLastException, getMessage, getStackTrace, getWhen, print, printStackTrace, throw
Methods inherited from error:
as.character, throw
Methods inherited from condition:
abort, as.character, conditionCall, conditionMessage, print
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
The RspExpression class
Description
Package: R.rsp
Class RspExpression
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspExpression
Directly known subclasses:
RspCode,RspCodeChunk,RspUnparsedExpression
public classRspExpression
extendsRspConstruct
An RspExpression is anRspConstruct of format<% ... %>.
Usage
RspExpression(...)Arguments
... | Not used. |
Fields and Methods
Methods:
No methods defined.
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspFileProduct class
Description
Package: R.rsp
Class RspFileProduct
logical~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspProduct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspFileProduct
Directly known subclasses:
public classRspFileProduct
extendsRspProduct
An RspFileProduct is anRspProduct that represents anRSP product in form of a file, e.g. LaTeX, Sweave and knitr documents.
Usage
RspFileProduct(pathname=NA, ..., mustExist=TRUE)Arguments
pathname | An existing file. |
... | Additional arguments passed to |
mustExist | If |
Fields and Methods
Methods:
findProcessor | - | |
getFileSize | - | |
getType | - | |
print | - | |
view | - | |
Methods inherited from RspProduct:
!, findProcessor, getType, hasProcessor, print, process, view
Methods inherited from RspObject:
print
Methods inherited from logical:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, as.data.frame, as.raster, coerce,ANY,logical-method, whichVector
Author(s)
Henrik Bengtsson
The RspIfDirective class
Description
Package: R.rsp
Class RspIfDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspIfDirective
Directly known subclasses:
RspIfeqDirective,RspIfneqDirective
public classRspIfDirective
extendsRspDirective
An RspIfDirective is anRspDirective that will include orexclude allRspConstruct:s until the nextRspEndifDirectivebased on the preprocessing value of the particular if clause.Inclusion/exclusion can be reversed via anRspElseDirective.
Usage
RspIfDirective(value="if", ...)Arguments
value | A |
... | Arguments passed to the constructor of |
Fields and Methods
Methods:
No methods defined.
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspIncludeDirective class
Description
Package: R.rsp
Class RspIncludeDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspIncludeDirective
Directly known subclasses:
public classRspIncludeDirective
extendsRspDirective
An RspIncludeDirective is anRspDirective that causes theRSP parser to include (and parse) an external RSP file.
Usage
RspIncludeDirective(value="include", ...)Arguments
value | A |
... | Optional arguments passed to the constructorof |
Fields and Methods
Methods:
getContent | Gets the content of the RSP include directive. | |
getFile | Gets the file attribute. | |
getVerbatim | Checks if verbatim include should be used or not. | |
getWrap | Get the wrap length. | |
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspLanguage class
Description
Package: R.rsp
Class RspLanguage
Object~~|~~+--RspLanguage
Directly known subclasses:
HtmlRspLanguage
public static classRspLanguage
extendsObject
An RspLanguage object specifies what the markup language of theresponse/output document is, e.g. plain text and HTML.The RspLanguage class provides methods to obtain language specificstrings/output such as how newlines and comments are written.The RspLanguage class describes a plain text languages. For HTMLsee theHtmlRspLanguage subclass.
Usage
RspLanguage(language="plain", ...)Arguments
language | A |
... | Not used. |
Fields and Methods
Methods:
escape | Escapes a string specifically for a given RSP response language. | |
getComment | Gets a comment string specific for a given RSP response language. | |
getLanguage | Gets the language string. | |
getNewline | Gets the newline string specific for a given RSP response language. | |
getVerbatim | Gets a verbatim string specific for a given RSP response language. | |
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
The RspMetaDirective class
Description
Package: R.rsp
Class RspMetaDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspVariableDirective~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~+--RspStringDirective~~~~~~~~~~~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~~~~~~~~~~~+--RspMetaDirective
Directly known subclasses:
public classRspMetaDirective
extendsRspStringDirective
An RspMetaDirective is anRspDirective representing RSP metadata.
Usage
RspMetaDirective(value="meta", ...)Arguments
value | A |
... | Arguments passed to the constructor of |
Fields and Methods
Methods:
No methods defined.
Methods inherited from RspVariableDirective:
getInclude
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The abstract RspObject class
Description
Package: R.rsp
Class RspObject
logical~~|~~+--RspObject
Directly known subclasses:
RspCode,RspCodeChunk,RspComment,RspConstruct,RspCopyDirective,RspCutDirective,RspDirective,RspDocument,RspElseDirective,RspEndcopyDirective,RspEndcutDirective,RspEndifDirective,RspErrorDirective,RspEvalDirective,RspExpression,RspFileProduct,RspIfDirective,RspIfeqDirective,RspIfneqDirective,RspIncludeDirective,RspIntegerDirective,RspLogicalDirective,RspMetaDirective,RspNumericDirective,RspPageDirective,RspPasteDirective,RspProduct,RspRSourceCode,RspShSourceCode,RspSourceCode,RspString,RspStringDirective,RspStringProduct,RspText,RspUnknownDirective,RspUnparsedDirective,RspUnparsedExpression,RspVariableDirective,RspVoid
public classRspObject
extends logical
An RspObject represents an instance a specific RSP class.
Usage
RspObject(value=NA, attrs=list(), ...)Arguments
value | An R object. |
attrs | RSP attributes as a named |
... | Additional named RSP attributes. |
Fields and Methods
Methods:
print | Prints a summary of an RSP object. | |
Methods inherited from logical:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, as.data.frame, as.raster, coerce,ANY,logical-method, whichVector
Author(s)
Henrik Bengtsson
The RspPage class
Description
Package: R.rsp
Class RspPage
Object~~|~~+--RspPage
Directly known subclasses:
public static classRspPage
extendsObject
Usage
RspPage(pathname=NULL, ...)Arguments
pathname | A |
... | Not used. |
Fields and Methods
Methods:
getAbsolutePath | Gets the absolute pathname to the current RSP file. | |
getName | Gets the (base)name of the current RSP file. | |
getPath | Gets the path of the directory of the current RSP file. | |
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
The RspPageDirective class
Description
Package: R.rsp
Class RspPageDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspPageDirective
Directly known subclasses:
public classRspPageDirective
extendsRspDirective
An RspPageDirective is anRspDirective that annotates thecontent of the RSP document, e.g. the content type.
Usage
RspPageDirective(value="page", ...)Arguments
value | A |
... | Arguments passed to the constructor of |
Fields and Methods
Methods:
getType | Gets the content type. | |
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspParser class
Description
Package: R.rsp
Class RspParser
logical~~|~~+--RspParser
Directly known subclasses:
public classRspParser
extends logical
An RspParser is parser for the RSP language.
Usage
RspParser(...)Arguments
... | Not used. |
Fields and Methods
Methods:
parseDocument | Parse an RSP string into and RSP document. | |
parseRaw | Parses the string into blocks of text and RSP. | |
Methods inherited from logical:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, as.data.frame, as.raster, coerce,ANY,logical-method, whichVector
Author(s)
Henrik Bengtsson
The RspProduct class
Description
Package: R.rsp
Class RspProduct
logical~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspProduct
Directly known subclasses:
RspFileProduct,RspRSourceCode,RspShSourceCode,RspSourceCode,RspStringProduct
public abstract classRspProduct
extendsRspObject
An RspProduct object represents an RSP product generated by processingan RSP document.
Usage
RspProduct(object=NA, ...)Arguments
object | The RSP product. |
... | Arguments passed to |
Fields and Methods
Methods:
! | - | |
findProcessor | Locates a processor for an RSP product. | |
getType | Gets the type of an RSP product. | |
hasProcessor | Checks whether a processor exist or not for an RSP product. | |
print | - | |
process | Processes an RSP file product. | |
view | Views the RSP product. | |
Methods inherited from RspObject:
print
Methods inherited from logical:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, as.data.frame, as.raster, coerce,ANY,logical-method, whichVector
Author(s)
Henrik Bengtsson
The RspRSourceCode class
Description
Package: R.rsp
Class RspRSourceCode
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspProduct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspSourceCode~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspRSourceCode
Directly known subclasses:
public abstract classRspRSourceCode
extendsRspSourceCode
An RspRSourceCode object is anRspSourceCode holding R source code.
Usage
RspRSourceCode(...)Arguments
... |
|
Fields and Methods
Methods:
evaluate | Parses and evaluates the R code. | |
findProcessor | - | |
parseCode | Parses the R code. | |
rcat | - | |
rfile | - | |
rsource | - | |
tangle | - | |
tidy | - | |
Methods inherited from RspSourceCode:
evaluate, print, rstring, tangle, tidy
Methods inherited from RspProduct:
!, findProcessor, getType, hasProcessor, print, process, view
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspRSourceCodeFactory class
Description
Package: R.rsp
Class RspRSourceCodeFactory
character~~|~~+--RspSourceCodeFactory~~~~~~~|~~~~~~~+--RspRSourceCodeFactory
Directly known subclasses:
public classRspRSourceCodeFactory
extendsRspSourceCodeFactory
An RspRSourceCodeFactory is anRspSourceCodeFactory forthe R language.
Usage
RspRSourceCodeFactory(...)Arguments
... | Not used. |
Fields and Methods
Methods:
exprToCode | - | |
getCompleteCode | - | |
Methods inherited from RspSourceCodeFactory:
exprToCode, getCompleteCode, getLanguage, makeSourceCode, toSourceCode
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspResponse class
Description
Package: R.rsp
Class RspResponse
Object~~|~~+--RspResponse
Directly known subclasses:
FileRspResponse,HttpDaemonRspResponse
public abstract static classRspResponse
extendsObject
An abstract class that provides basic methods to write and flush output tothe generated document.
Usage
RspResponse(...)Arguments
... | Not used. |
Fields and Methods
Methods:
flush | Flushes the response buffer. | |
writeResponse | Writes an RSP response to the predefined output. | |
Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clearLookupCache, clone, detach, equals, extend, finalize, getEnvironment, getFieldModifier, getFieldModifiers, getFields, getInstantiationTime, getStaticInstance, hasField, hashCode, ll, load, names, objectSize, print, save
Author(s)
Henrik Bengtsson
The RspShSourceCode class
Description
Package: R.rsp
Class RspShSourceCode
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspProduct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspSourceCode~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspShSourceCode
Directly known subclasses:
public abstract classRspShSourceCode
extendsRspSourceCode
An RspShSourceCode object is anRspSourceCode holding shell code.
Usage
RspShSourceCode(...)Arguments
... |
|
Fields and Methods
Methods:
evaluate | Evaluates the shell (sh) code. | |
findProcessor | - | |
rcat | - | |
rfile | - | |
Methods inherited from RspSourceCode:
evaluate, print, rstring, tangle, tidy
Methods inherited from RspProduct:
!, findProcessor, getType, hasProcessor, print, process, view
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspShSourceCodeFactory class
Description
Package: R.rsp
Class RspShSourceCodeFactory
character~~|~~+--RspSourceCodeFactory~~~~~~~|~~~~~~~+--RspShSourceCodeFactory
Directly known subclasses:
public classRspShSourceCodeFactory
extendsRspSourceCodeFactory
An RspShSourceCodeFactory is anRspSourceCodeFactory forthe shell ('sh') script language.
Usage
RspShSourceCodeFactory(...)Arguments
... | Not used. |
Fields and Methods
Methods:
exprToCode | - | |
Methods inherited from RspSourceCodeFactory:
exprToCode, getCompleteCode, getLanguage, makeSourceCode, toSourceCode
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspSourceCode class
Description
Package: R.rsp
Class RspSourceCode
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspProduct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspSourceCode
Directly known subclasses:
RspRSourceCode,RspShSourceCode
public abstract classRspSourceCode
extendsRspProduct
An RspSourceCode object is acharactervector holding RSP generatedsource code for a particular programming language.
Usage
RspSourceCode(code=character(), ...)Arguments
code | |
... | Additional arguments passed to the |
Fields and Methods
Methods:
evaluate | Evaluates the source code. | |
print | - | |
rstring | - | |
tangle | Drops all text-outputting calls from the source code. | |
tidy | Tidy up the RSP source code. | |
Methods inherited from RspProduct:
!, findProcessor, getType, hasProcessor, print, process, view
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspSourceCodeFactory class
Description
Package: R.rsp
Class RspSourceCodeFactory
character~~|~~+--RspSourceCodeFactory
Directly known subclasses:
RspRSourceCodeFactory,RspShSourceCodeFactory
public abstract classRspSourceCodeFactory
extends character
An RspSourceCodeFactory is language-specific engine that knows how to translateindividualRspExpression:s into source code of a specificprogramming language.
Usage
RspSourceCodeFactory(language=NA, ...)Arguments
language | A |
... | Not used. |
Fields and Methods
Methods:
exprToCode | Translates an RspExpression into source code. | |
getCompleteCode | Gets the source code header, body, and footer. | |
getLanguage | Gets the language. | |
makeSourceCode | Makes a RspSourceCode object. | |
toSourceCode | Translates an RSP document to source code. | |
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspString class
Description
Package: R.rsp
Class RspString
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspString
Directly known subclasses:
public classRspString
extendsRspObject
An RspString is acharactervector with RSP markup.
Usage
RspString(s=character(), ...)Arguments
s | |
... | Arguments passed to |
Fields and Methods
Methods:
evaluate | Parses, translates, and evaluates the RSP string. | |
getSource | Gets the source reference of an RSP string. | |
getType | Gets the type of an RSP string. | |
nbrOfLines | Gets the number of lines in an RSP string. | |
parseDocument | Parses an RSP string into a RSP document. | |
print | - | |
rcat | - | |
rclean | - | |
rcode | - | |
rcompile | - | |
rfile | - | |
rsource | - | |
rstring | - | |
toR | Parses and translates the RSP string into R code. | |
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspStringProduct class
Description
Package: R.rsp
Class RspStringProduct
logical~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspProduct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspStringProduct
Directly known subclasses:
public abstract classRspStringProduct
extendsRspProduct
An RspStringProduct is anRspProduct that represents anRSP product in form of acharacter string.
Usage
RspStringProduct(...)Arguments
... |
|
Fields and Methods
Methods:
as.character | Returns a plain character string representation of an RSP string product. | |
print | - | |
Methods inherited from RspProduct:
!, findProcessor, getType, hasProcessor, print, process, view
Methods inherited from RspObject:
print
Methods inherited from logical:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, as.data.frame, as.raster, coerce,ANY,logical-method, whichVector
Author(s)
Henrik Bengtsson
The RspText class
Description
Package: R.rsp
Class RspText
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspText
Directly known subclasses:
public classRspText
extendsRspConstruct
An RspText is anRspConstruct that represents a plain textsection, i.e. everything that is inbetween any other types ofRspConstruct:s.Its content is independent of the underlying programming language.
Usage
RspText(text=character(), escape=FALSE, ...)Arguments
text | A |
escape | If |
... | Not used. |
Fields and Methods
Methods:
asRspString | - | |
getContent | Gets the contents of the RSP text. | |
getInclude | - | |
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspUnknownDirective class
Description
Package: R.rsp
Class RspUnknownDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspUnknownDirective
Directly known subclasses:
public classRspUnknownDirective
extendsRspDirective
An RspUnknownDirective is anRspDirective that is unknown.
Usage
RspUnknownDirective(value="unknown", ...)Arguments
value | A |
... | Arguments passed to the constructor of |
Fields and Methods
Methods:
No methods defined.
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspUnparsedDirective class
Description
Package: R.rsp
Class RspUnparsedDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspUnparsedDirective
Directly known subclasses:
public classRspUnparsedDirective
extendsRspDirective
An RspUnparsedDirective is anRspDirective that still has notbeen parsed for its class and content. Afterparse():ing suchan object, the class of this RSP directive will be known.
Usage
RspUnparsedDirective(value="unparsed", ...)Arguments
value | A |
... | Arguments passed to |
Fields and Methods
Methods:
asRspString | - | |
parseDirective | Parses the unknown RSP directive for its class. | |
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspUnparsedExpression class
Description
Package: R.rsp
Class RspUnparsedExpression
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspExpression~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspUnparsedExpression
Directly known subclasses:
public classRspUnparsedExpression
extendsRspExpression
An RspUnparsedExpression is anRspExpression that still has notbeen parsed for its class and content. Afterparse():ing suchan object, the class of this RSP expression will be known.
Usage
RspUnparsedExpression(...)Arguments
... | Arguments passed to |
Fields and Methods
Methods:
parseExpression | Parses the unknown RSP expression for its class. | |
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
The RspVariableDirective class
Description
Package: R.rsp
Class RspVariableDirective
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspDirective~~~~~~~~~~~~~~~~~|~~~~~~~~~~~~~~~~~+--RspVariableDirective
Directly known subclasses:
RspIntegerDirective,RspLogicalDirective,RspMetaDirective,RspNumericDirective,RspStringDirective
public classRspVariableDirective
extendsRspDirective
An RspVariableDirective is anRspDirective that causes theRSP parser to assign the value of an attribute to an R object ofthe same name as the attribute at the time of parsing.
Usage
RspVariableDirective(value="variable", ...)Arguments
value | A |
... | Arguments passed to the constructor of |
Fields and Methods
Methods:
getInclude | - | |
Methods inherited from RspDirective:
asRspString, getNameContentDefaultAttributes, requireAttributes
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toLatex, uses
Author(s)
Henrik Bengtsson
The RspVoid class
Description
Package: R.rsp
Class RspVoid
character~~|~~+--RspObject~~~~~~~|~~~~~~~+--RspConstruct~~~~~~~~~~~~|~~~~~~~~~~~~+--RspVoid
Directly known subclasses:
public classRspVoid
extendsRspConstruct
An RspVoid is anRspConstruct that contains nothing andoutputs nothing.
Usage
RspVoid(...)Arguments
... | Not used. |
Fields and Methods
Methods:
asRspString | - | |
Methods inherited from RspConstruct:
asRspString, getComment, getInclude, getSuffixSpecs
Methods inherited from RspObject:
print
Methods inherited from character:
Ops,nonStructure,vector-method, Ops,structure,vector-method, Ops,vector,nonStructure-method, Ops,vector,structure-method, all.equal, as.Date, as.POSIXlt, as.data.frame, as.raster, coerce,ANY,character-method, coerce,character,SuperClassMethod-method, coerce,character,signature-method, coerce<-,ObjectsWithPackage,character-method, coerce<-,signature,character-method, downloadFile, formula, getDLLRegisteredRoutines, glyphJust, isOpen, toAsciiRegExprPattern, toFileListTree, toLatex, uses
Author(s)
Henrik Bengtsson
Subsets an RspDocument
Description
Subsets an RspDocument.
Usage
## S3 method for class 'RspDocument'x[i]Arguments
i | Indices of the RSP elements to extract. |
Value
Returns anRspDocument.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Returns a short string describing the HTTP daemon
Description
Returns a short string describing the HTTP daemon.
Usage
## S3 method for class 'HttpDaemon'as.character(x, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Returns a short string describing the HTTP request
Description
Returns a short string describing the HTTP request.
Usage
## S3 method for class 'HttpRequest'as.character(x, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpRequest.
Returns a plain character string representation of an RSP string product
Description
Returns a plain character string representation of an RSP string product. All attributes including class have been dropped.
Usage
## S3 method for class 'RspStringProduct'as.character(x, ...)Arguments
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspStringProduct.
Recreates an RSP string from an RspConstruct
Description
Recreates an RSP string from an RspConstruct.
Usage
## S3 method for class 'RspConstruct'asRspString(object, ...)Arguments
... | Not used. |
Value
Returns anRspString.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspConstruct.
Starts the internal web browser and opens the URL in the default web browser
Description
Starts the internal web browser and opens the URL in the default web browser.From this page you access not only help pages and demos on how to useRSP, but also other package RSP pages.
Usage
## Default S3 method:browseRsp(url=paste(urlRoot, path, sep = "/"), urlRoot=sprintf("http://%s:%d", host, port), host="127.0.0.1", port=8074L, path="", start=TRUE, stop=FALSE, ...)Arguments
url | A |
urlRoot | A |
host | An optional |
port | An optional |
path | An optional |
start | If |
stop | If |
... | Additional arguments passed to |
Value
Returns (invisibly) the URL.
Author(s)
Henrik Bengtsson
See Also
Internally,browseURL is used to launch the browser.
Compiles all TeX files into PDFs
Description
Compiles all TeX files into PDFs, unless already done.
Usage
buildNonSweaveTexToPdf(path=".", pattern="[.](tex|ltx)$", ...)Arguments
path | The directory where to search for TeX files. |
pattern | Filename pattern to locate TeX files. |
... | Additional arguments passed to |
Value
Returns (invisibly) a namedlist of results.
Author(s)
Henrik Bengtsson
Builds a non-Sweave Rnw vignette
Description
Builds a non-Sweave Rnw vignette.
Usage
buildNonSweaveVignette(vign, envir=new.env(), ...)Arguments
... | Not used. |
Value
Returns (invisibly) a namedlist.
Author(s)
Henrik Bengtsson
Builds all non-Sweave Rnw vignette
Description
Builds all non-Sweave Rnw vignette.
Usage
buildNonSweaveVignettes(...)Arguments
... | Additional arguments passed to |
Value
Returns (invisibly) a namedlist with elements of whatthe vignette builder returns.
Author(s)
Henrik Bengtsson
See Also
To build vignette, seebuildNonSweaveVignette().
Builds a package index HTML file
Description
Builds a package index HTML file, iff missing.
Usage
buildPkgIndexHtml(...)Arguments
... | Not used. |
Value
Returns (invisibly) the absolute pathname to the built index.html file.If an index.html file already exists, nothing is done andNULLis returned.
Author(s)
Henrik Bengtsson
Builds a vignette
Description
Builds a vignette into a PDF or a HTML file.
Usage
buildVignette(file, dir=".", latex=TRUE, tangle=TRUE, quiet=TRUE, clean=TRUE, engine=NULL, buildPkg=NULL, ...)Arguments
file | A character string specifying the vignette source file. |
dir | A character string specifying the working directory. |
latex | A logical specifying whether a TeX produced by weaveshould be compiled bytexi2pdf or not. |
tangle | A logical specifying whether tangle should be run or not. |
quiet | A logical specifying whether weave,texi2pdf, andtangle should be run in quiet mode or not. |
clean | Remove all files generated by the build, even if therewere copies there before. |
engine | An optional |
buildPkg | An optional |
... | Additional arguments passed to weave and tangle. |
Value
Returns the filename to the final vignette (PDF or HTML) product.Iflatex = FALSE, it may be a TeX file.
Author(s)
Henrik Bengtsson
See Also
Since R devel (to become 3.1.0) r63076 (2013-06-27), there isbuildVignette() in thetools package.
Compiles an AsciiDoc file
Description
Compiles an AsciiDoc file.
Usage
## Default S3 method:compileAsciiDoc(filename, path=NULL, ..., outPath=".", postprocess=TRUE, verbose=FALSE)Arguments
filename,path | The filename and (optional) path of thedocument to be compiled. |
... | Additional arguments passed to executable |
outPath | The output and working directory. |
postprocess | Should the generated document be post processed or not? |
verbose | See |
Value
Returns the pathname of the generated document.
Author(s)
Henrik Bengtsson
Compiles an AsciiDoc noweb file
Description
Compiles an AsciiDoc noweb file.
Usage
## Default S3 method:compileAsciiDocNoweb(filename, path=NULL, ..., outPath=".", postprocess=TRUE, verbose=FALSE)Arguments
filename,path | The filename and (optional) path of thedocument to be compiled. |
... | Additional arguments passed to |
outPath | The output and working directory. |
verbose | See |
Value
Returns the pathname of the generated document.
Author(s)
Henrik Bengtsson
Compiles a Knitr file
Description
Compiles a Knitr file.
Usage
## Default S3 method:compileKnitr(filename, path=NULL, ..., outPath=".", postprocess=TRUE, verbose=FALSE)Arguments
filename,path | The filename and (optional) path of thedocument to be compiled. |
... | Additional arguments passed to |
outPath | The output and working directory. |
postprocess | If |
verbose | See |
Value
Returns the pathname of the generated document.
Author(s)
Henrik Bengtsson
See Also
Internally,knit is used.
Compiles a LaTeX file
Description
Compiles a LaTeX file to either PDF or DVI.
Usage
## Default S3 method:compileLaTeX(filename, path=NULL, format=c("pdf", "dvi"), clean=FALSE, quiet=TRUE, texinputs=NULL, ..., outPath=".", verbose=FALSE)Arguments
filename,path | The filename and (optional) path of theLaTeX document to be compiled.Only *.tex and *.ltx filename extensions are allowed. |
format | A |
clean,quiet,texinputs | Additional arguments passed to |
... | Not used. |
outPath | The output and working directory. |
verbose | See |
Value
Returns the pathname of the generated (PDF or DVI) document.
Supported filename extensions
Internallytexi2dvi is used, which in turn usesSys.which("texi2dvi") if available. Most known implementationof the latter will only recognize LaTeX documents with filenameextensions *.tex and *.ltx (case sensitive). (Any other filenameswill be compiled with 'texinfo', which is not a LaTeX compiler.)
Author(s)
Henrik Bengtsson
See Also
Internally,texi2dvi is used.To compile Sweave LaTeX documents,compileSweave().
Compiles a Markdown file
Description
Compiles a Markdown file to HTML.
Usage
## Default S3 method:compileMarkdown(filename, path=NULL, ..., outPath=".", header=NULL, metadata=getMetadata(filename), verbose=FALSE)Arguments
filename,path | The filename and (optional) path of theMarkdown document to be compiled. |
... | Additional arguments passed to |
outPath | The output and working directory. |
header |
|
metadata | A named |
verbose | See |
Details
The input encoding is based ongetOption("encoding") andthe output encoding is"UTF-8"(forced bymarkdownToHTML).
Value
Returns the pathname of the generated HTML document.
Author(s)
Henrik Bengtsson
See Also
Internally,markdownToHTML is used.
Compiles a Rnw file
Description
Compiles a Rnw file.The compiler used depends on the content type.
Usage
## Default S3 method:compileRnw(filename, path=NULL, ..., type=NULL, verbose=FALSE)Arguments
filename,path | The filename and (optional) path of thedocument to be compiled. |
... | Additional arguments passed to the compiler functionused. |
type | A |
verbose | See |
Value
Returns the pathname of the generated document.
Author(s)
Henrik Bengtsson
Compiles an RSP file
Description
Compiles an RSP file.
Usage
## Default S3 method:compileRsp(filename, path=NULL, ..., outPath=".", envir=parent.frame(), verbose=FALSE)Arguments
filename,path | The filename and (optional) path of theRSP document to be compiled. |
... | Additional arguments passed to |
outPath | The output and working directory. |
verbose | See |
Value
Returns the pathname of the generated document.
Author(s)
Henrik Bengtsson
Compiles a Sweave file
Description
Compiles a Sweave file.
Usage
## Default S3 method:compileSweave(filename, path=NULL, ..., outPath=".", postprocess=TRUE, verbose=FALSE)Arguments
filename,path | The filename and (optional) path of theSweave document to be compiled. |
... | Additional arguments passed to |
outPath | The output and working directory. |
postprocess | If |
verbose | See |
Value
Returns the pathname of the generated document.
Author(s)
Henrik Bengtsson
See Also
Internally,Sweave is used.
Drops all empty RSP text constructs
Description
Drops all empty RSP text constructs.
Usage
## S3 method for class 'RspDocument'dropEmptyText(object, ..., verbose=FALSE)Arguments
... | Not used. |
verbose | See |
Value
Returns anRspDocument.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Escapes a string specifically for a given RSP response language
Description
Escapes a string specifically for a given RSP response language.
Usage
## S3 method for class 'RspLanguage'escape(this, ...)Arguments
... | R objects to be pasted together. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspLanguage.
Parses, translates, and evaluates the RSP document
Description
Parses, translates, and evaluates the RSP document.
Usage
## S3 method for class 'RspDocument'evaluate(object, envir=parent.frame(), ...)Arguments
envir | The |
... | Not used. |
Value
Returns the last evaluated expression, iff any.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Parses and evaluates the R code
Description
Parses and evaluates the R code.
Usage
## S3 method for class 'RspRSourceCode'evaluate(object, envir=parent.frame(), args="*", output=c("RspStringProduct", "stdout"), ..., verbose=FALSE)Arguments
envir | The |
args | A named |
output | A |
... | Not used. |
Value
Ifoutput="stdout", thenNULL is returned and the RSP outputis sent to the standard output. This is output is "non-buffered",meaning it will be sent to the output as soon as it is generated.Ifoutput="RspStringProduct", then the output is capturedand returned as anRspStringProduct with attributes set.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspRSourceCode.
Evaluates the shell (sh) code
Description
Evaluates the shell (sh) code.
Usage
## S3 method for class 'RspShSourceCode'evaluate(object, envir=parent.frame(), args="*", output=c("RspStringProduct", "stdout"), ..., verbose=FALSE)Arguments
envir | The |
args | A named |
output | A |
... | Optional arguments passed to |
Value
Ifoutput="stdout", thenNULL is returned and the RSP outputis sent to the standard output.Note that this is output is "buffered", meaning it will be sent tostandard output upon completion. This is a limitation of R.Ifoutput="RspStringProduct", then the output is capturedand returned as anRspStringProduct with attributes set.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspShSourceCode.
Evaluates the source code
Description
Evaluates the source code.
Usage
## S3 method for class 'RspSourceCode'evaluate(...)Arguments
... | Not used. |
Value
Returns the last evaluated expression, iff any.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCode.
Parses, translates, and evaluates the RSP string
Description
Parses, translates, and evaluates the RSP string.
Usage
## S3 method for class 'RspString'evaluate(object, envir=parent.frame(), ...)Arguments
envir | The |
... | Not used. |
Value
Returns the last evaluated expression, iff any.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspString.
Translates an RspExpression into source code
Description
Translates an RspExpression into source code.
Usage
## S3 method for class 'RspSourceCodeFactory'exprToCode(...)Arguments
... | Not used. |
Value
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCodeFactory.
Locates the asciidoc executable
Description
Locates the asciidoc executable on the current system.
Usage
## Default S3 method:findAsciiDoc(mustExist=TRUE, ..., verbose=FALSE)Arguments
mustExist | If |
... | Not used. |
verbose | See |
Details
The 'asciidoc' executable is searched for as follows:
Sys.which("asciidoc")
Value
Returns the pathname to the executable, orNULL if not found.
Author(s)
Henrik Bengtsson
Locates the pandoc executable
Description
Locates the pandoc executable on the current system.
Usage
## Default S3 method:findPandoc(mustExist=TRUE, ..., verbose=FALSE)Arguments
mustExist | If |
... | Not used. |
verbose | See |
Details
The executable is searched for as follows:
Sys.which("pandoc")
Value
Returns the pathname to the executable, orNULL if not found.
Author(s)
Henrik Bengtsson
Locates a processor for an RSP product
Description
Locates a processor for an RSP product.
Usage
## S3 method for class 'RspProduct'findProcessor(object, ...)Arguments
... | Not used. |
Value
Returns afunction that takes anRspProduct as input,orNULL if no processor was found.
Author(s)
Henrik Bengtsson
Flattens an RspDocument
Description
Flattens an RspDocument by expanding and inserting thelist ofRspConstructs for anyRspDocument.
Usage
## S3 method for class 'RspDocument'flatten(object, ..., verbose=FALSE)Arguments
... | Not used. |
verbose | See |
Value
Returns anRspDocument that contains onlyRspConstruct:s(and noRspDocument).
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Flushes the response buffer
Description
Flushes the response buffer.
Usage
## S3 method for class 'RspResponse'flush(...)Arguments
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspResponse.
Gets the absolute pathname to the current RSP file
Description
Gets the absolute pathname to the current RSP file.
Usage
## S3 method for class 'FileRspResponse'getAbsolutePath(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeFileRspResponse.
Gets the absolute pathname to the current RSP file
Description
Gets the absolute pathname to the current RSP file.
Usage
## S3 method for class 'RspPage'getAbsolutePath(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspPage.
Gets and sets attributes of an object
Description
Gets and sets attributes of an object.
Usage
## Default S3 method:getAttributes(object, private=FALSE, ...)Arguments
object | An object. |
private | If |
... | Not used. |
Value
Returns a namedlist,NULL or a modified object itself.
Author(s)
Henrik Bengtsson
Gets the source code
Description
Gets the source code.
Usage
## S3 method for class 'RspCode'getCode(code, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspCode.
Gets the comment
Description
Gets the comment.
Usage
## S3 method for class 'RspComment'getComment(comment, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspComment.
Gets the comment of an RSP construct
Description
Gets the comment of an RSP construct.
Usage
## S3 method for class 'RspConstruct'getComment(object, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspConstruct.
Gets a comment string specific for a given RSP response language
Description
Gets a comment string specific for a given RSP response language.
Usage
## S3 method for class 'RspLanguage'getComment(this, ...)Arguments
... | R objects to be pasted together. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspLanguage.
Gets the source code header, body, and footer
Description
Gets the source code header, body, and footer.
Usage
## S3 method for class 'RspSourceCodeFactory'getCompleteCode(this, object, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCodeFactory.
Gets the content of the RSP eval directive
Description
Gets the content of the RSP eval directive.
Usage
## S3 method for class 'RspEvalDirective'getContent(directive, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspEvalDirective.
Gets the content of the RSP include directive
Description
Gets the content of the RSP include directive.
Usage
## S3 method for class 'RspIncludeDirective'getContent(directive, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspIncludeDirective.
Gets the contents of the RSP text
Description
Gets the contents of the RSP text.
Usage
## S3 method for class 'RspText'getContent(text, unescape=FALSE, ...)Arguments
unescape | If |
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspText.
Gets the length of contents
Description
Gets the length of contents (in bytes), or -1 if the length is not known.
Usage
## S3 method for class 'HttpRequest'getContentLength(this, ...)Arguments
... | Not used. |
Value
Returns aninteger.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpRequest.
Gets the MIME type of the body of the request
Description
Gets the MIME type of the body of the request, orNULL if the type is not known.
Usage
## S3 method for class 'HttpRequest'getContentType(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpRequest.
Checks whether the source code should be echoed or not
Description
Checks whether the source code should be echoed or not.
Usage
## S3 method for class 'RspCode'getEcho(code, ...)Arguments
... | Not used. |
Value
Returns alogical.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspCode.
Gets the file attribute
Description
Gets the file attribute.
Usage
## S3 method for class 'RspEvalDirective'getFile(directive, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspEvalDirective.
Gets the file attribute
Description
Gets the file attribute.
Usage
## S3 method for class 'RspIncludeDirective'getFile(directive, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspIncludeDirective.
Checks whether an RSP construct will include text to the output or not
Description
Checks whether an RSP construct will include text to the output or not.
Usage
## S3 method for class 'RspConstruct'getInclude(object, ...)Arguments
... | Not used. |
Value
Author(s)
Henrik Bengtsson
See Also
For more information seeRspConstruct.
Gets the language string
Description
Gets the language string.
Usage
## S3 method for class 'RspLanguage'getLanguage(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspLanguage.
Gets the language
Description
Gets the language.
Usage
## S3 method for class 'RspSourceCodeFactory'getLanguage(this, ...)Arguments
... | Not used. |
Value
Returns ancharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCodeFactory.
Gets the (base)name of the current RSP file
Description
Gets the (base)name of the current RSP file.
Usage
## S3 method for class 'FileRspResponse'getName(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeFileRspResponse.
Gets the (base)name of the current RSP file
Description
Gets the (base)name of the current RSP file.
Usage
## S3 method for class 'RspPage'getName(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspPage.
Gets the newline string specific for a given RSP response language
Description
Gets the newline string specific for a given RSP response language.
Usage
## S3 method for class 'RspLanguage'getNewline(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspLanguage.
Gets the output for an RSP response
Description
Gets the output for an RSP response.
Usage
## S3 method for class 'FileRspResponse'getOutput(this, ...)Arguments
... | Not used. |
Value
Returns aconnection or a filename.
Author(s)
Henrik Bengtsson
See Also
For more information seeFileRspResponse.
Gets a parameter
Description
Gets a parameter.
Usage
## S3 method for class 'HttpRequest'getParameter(this, name, default=NULL, drop=TRUE, ...)Arguments
name | Name of parameter to be retrieved. |
default | Value to be returned if parameter is missing. |
drop | If |
... | Additional arguments passed to |
Value
Returns the value(s) of the parameter either as a single value oras a namedlist.If the parameter does not exist, the default value is returned as is.
Author(s)
Henrik Bengtsson
See Also
*hasParameter().*getParameters().For more information seeHttpRequest.
Gets all parameters
Description
Gets all parameters.
Usage
## S3 method for class 'HttpRequest'getParameters(this, trim=FALSE, ...)Arguments
trim | If |
... | Not used. |
Value
Returns a namedlist.
Author(s)
Henrik Bengtsson
See Also
*getParameter().For more information seeHttpRequest.
Gets the path of the directory of the current RSP file
Description
Gets the path of the directory of the current RSP file.
Usage
## S3 method for class 'FileRspResponse'getPath(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeFileRspResponse.
Gets the path to the source reference of an RSP string
Description
Gets the path to the source reference of an RSP string.
Usage
## S3 method for class 'RspDocument'getPath(object, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Gets the path of the directory of the current RSP file
Description
Gets the path of the directory of the current RSP file.
Usage
## S3 method for class 'RspPage'getPath(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspPage.
Gets the name and version of the protocol used to make this request
Description
Gets the name and version of the protocol used to make this request, e.g. HTTP/1.1.
Usage
## S3 method for class 'HttpRequest'getProtocol(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
getScheme().For more information seeHttpRequest.
Gets the file system path for a given URI
Description
Gets the file system path for a given URI.
Usage
## S3 method for class 'HttpRequest'getRealPath(this, uri, ...)Arguments
uri | A URI as a |
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpRequest.
Gets the IP address of the client that sent the request
Description
Gets the IP address of the client that sent the request.
Usage
## S3 method for class 'HttpRequest'getRemoteAddress(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
getRemoteHost().For more information seeHttpRequest.
Gets the fully qualified name of the client that sent the request
Description
Gets the fully qualified name of the client that sent the request.If it cannot resolve the hostname, this method returns the dotted-stringform of the IP address.
Usage
## S3 method for class 'HttpRequest'getRemoteHost(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
getRemoteAddress().For more information seeHttpRequest.
Gets the scheme used to make this request
Description
Gets the scheme used to make this request, e.g. http, https, or ftp.
Usage
## S3 method for class 'HttpRequest'getScheme(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
getProtocol().For more information seeHttpRequest.
Gets the host name of the server that reviewed the request
Description
Gets the host name of the server that reviewed the request.
Usage
## S3 method for class 'HttpRequest'getServerName(this, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
getServerPort().For more information seeHttpRequest.
Gets the port number on which this request was received
Description
Gets the port number on which this request was received.
Usage
## S3 method for class 'HttpRequest'getServerPort(this, ...)Arguments
... | Not used. |
Value
Returns aninteger.
Author(s)
Henrik Bengtsson
See Also
getServerPort().For more information seeHttpRequest.
Gets the source reference of an RSP document
Description
Gets the source reference of an RSP document.
Usage
## S3 method for class 'RspDocument'getSource(object, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Gets the source reference of an RSP string
Description
Gets the source reference of an RSP string.
Usage
## S3 method for class 'RspString'getSource(object, ...)Arguments
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspString.
Gets the suffix specifications
Description
Gets the suffix specifications.
Usage
## S3 method for class 'RspConstruct'getSuffixSpecs(object, ...)Arguments
... | Not used. |
Value
Returns a trimmedcharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspConstruct.
Gets the type of the RspDocument
Description
Gets the type of the RspDocument.
Usage
## S3 method for class 'RspDocument'getType(object, default=NA, as=c("text", "IMT"), ...)Arguments
default | If unknown/not set, the default content type to return. |
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Gets the content type
Description
Gets the content type.
Usage
## S3 method for class 'RspPageDirective'getType(directive, default=NA, as=c("text", "IMT"), ...)Arguments
default | If unknown/not set, the default content type to return. |
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspPageDirective.
Gets the type of an RSP product
Description
Gets the type of an RSP product.
Usage
## S3 method for class 'RspProduct'getType(object, default=NA_character_, as=c("text", "IMT"), ...)Arguments
default | If unknown/not set, the default content type to return. |
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspProduct.
Gets the type of an RSP string
Description
Gets the type of an RSP string.
Usage
## S3 method for class 'RspString'getType(object, default=NA, as=c("text", "IMT"), ...)Arguments
default | If unknown/not set, the default content type to return. |
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspString.
Checks if verbatim include should be used or not
Description
Checks if verbatim include should be used or not.
Usage
## S3 method for class 'RspIncludeDirective'getVerbatim(directive, ...)Arguments
... | Not used. |
Value
Returns alogical.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspIncludeDirective.
Gets a verbatim string specific for a given RSP response language
Description
Gets a verbatim string specific for a given RSP response language.
Usage
## S3 method for class 'RspLanguage'getVerbatim(this, ...)Arguments
... | R objects to be pasted together. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspLanguage.
Get the wrap length
Description
Get the wrap length.
Usage
## S3 method for class 'RspIncludeDirective'getWrap(directive, ...)Arguments
... | Not used. |
Value
Author(s)
Henrik Bengtsson
See Also
For more information seeRspIncludeDirective.
Checks if a parameter exists
Description
Checks if a parameter exists.
Usage
## S3 method for class 'HttpRequest'hasParameter(this, name, ...)Arguments
name | Name of parameter to be checked. |
... | Not used. |
Value
ReturnsTRUE if the parameter exists, otherwiseFALSE.
Author(s)
Henrik Bengtsson
See Also
*getParameter().For more information seeHttpRequest.
Checks whether a processor exist or not for an RSP product
Description
Checks whether a processor exist or not for an RSP product.
Usage
## S3 method for class 'RspProduct'hasProcessor(object, ...)Arguments
... | Not used. |
Value
ReturnsTRUE if one exists, otherwiseFALSE.
Author(s)
Henrik Bengtsson
Gets the first index of a string that is not inside a double quoted string
Description
Gets the first index of a string that is not inside a double quoted string.
Usage
## Default S3 method:indexOfNonQuoted(str, pattern, ...)Arguments
str | The |
pattern | The |
... | Not used. |
Value
Returns aninteger giving the position of (the first character of)the search string in the main string. If not found, -1 is returned.
Author(s)
Henrik Bengtsson
See Also
grep().
Makes a RspSourceCode object
Description
Makes a RspSourceCode object.
Usage
## S3 method for class 'RspSourceCodeFactory'makeSourceCode(this, code, ...)Arguments
code | |
... | Arguments passed to the language-specific |
Value
Returns aRspSourceCode object.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCodeFactory.
Merge neighboring 'text' elements
Description
Merge neighboring 'text' elements by pasting them together.
Usage
## S3 method for class 'RspDocument'mergeTexts(object, trim=FALSE, ..., verbose=FALSE)Arguments
... | Not used. |
Value
Returns anRspDocument with equal or fever number of elements.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Gets the number of lines in an RSP string
Description
Gets the number of lines in an RSP string.
Usage
## S3 method for class 'RspString'nbrOfLines(object, ...)Arguments
... | Not used. |
Value
Returns a non-negativeinteger.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspString.
Gets the number of parameters
Description
Gets the number of parameters.
Usage
## S3 method for class 'HttpRequest'nbrOfParameters(this, ...)Arguments
... | Not used. |
Value
Returns aninteger.
Author(s)
Henrik Bengtsson
See Also
*getParameter().*hasParameter().For more information seeHttpRequest.
Starts the HTTP daemon and launches the specified URL
Description
Starts the HTTP daemon and launches the specified URL.
Usage
## S3 method for class 'HttpDaemon'openUrl(static, url=sprintf("http://%s:%d/%s", host, port, path), host="127.0.0.1", port=8074, path="", ...)Arguments
url | The URL to be opened. |
host | The host where the HTTP server is running. |
port | The port to be used. |
path | The path to the document to be opened. |
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
Called by for instance*startHelp().For more information seeHttpDaemon.
Parses the R code
Description
Parses the R code.
Usage
## S3 method for class 'RspRSourceCode'parseCode(object, ...)Arguments
... | Not used. |
Value
Returns anexpression.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspRSourceCode.
Parses the unknown RSP directive for its class
Description
Parses the unknown RSP directive for its class.
Usage
## S3 method for class 'RspUnparsedDirective'parseDirective(expr, ...)Arguments
... | Not used. |
Value
Returns anRspDirective of known class.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspUnparsedDirective.
Parse an RSP string into and RSP document
Description
Parse an RSP string into and RSP document with RSP comments dropped.
Usage
## S3 method for class 'RspParser'parseDocument(parser, object, envir=parent.frame(), ..., until=c("*", "end", "expressions", "directives", "comments"), as=c("RspDocument", "RspString"), verbose=FALSE)Arguments
object | An |
envir | The |
... | Passed to the processor in each step. |
until | Specifies how far the parse should proceed, which is usefulfor troubleshooting and debugging. |
as | Specifies in what format the parsed RSP documentshould be returned. |
verbose | See |
Value
Returns aRspDocument (whenas = "RspDocument"; default)orRspString (whenas = "RspString").
Author(s)
Henrik Bengtsson
See Also
For more information seeRspParser.
Parses an RSP string into a RSP document
Description
Parses an RSP string into a RSP document.
Usage
## S3 method for class 'RspString'parseDocument(object, ..., envir=parent.frame(), parser=RspParser())Arguments
... | Additional arguments passed to the RSP parser. |
envir | The |
parser | An |
Value
Returns aRspDocument (unlessuntil != "*" in case itreturns a deparsedRspString.)
Author(s)
Henrik Bengtsson
See Also
For more information seeRspString.
Parses the unknown RSP expression for its class
Description
Parses the unknown RSP expression for its class.
Usage
## S3 method for class 'RspUnparsedExpression'parseExpression(expr, ...)Arguments
... | Not used. |
Value
Returns anRspExpression of known class.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspUnparsedExpression.
Parses the string into blocks of text and RSP
Description
Parses the string into blocks of text and RSP.
Usage
## S3 method for class 'RspParser'parseRaw(parser, object, what=c("comment", "directive", "expression"), commentLength=-1L, ..., verbose=FALSE)Arguments
object | An |
what | A |
commentLength | Specify the number of hyphens in RSP commentsto parse for. |
... | Not used. |
verbose | See |
Value
Returns a namedlist with elements named "text" and "rsp".
Author(s)
Henrik Bengtsson
See Also
For more information seeRspParser.
Parses an Rnw file
Description
Parses an Rnw file.
Usage
parseVignette(pathname, commentPrefix="^[ \t]*%[ \t]*", final=FALSE, source=FALSE, maxLines=-1L, ...)Arguments
pathname | The Rnw file to be parsed. |
commentPrefix | A regular expression specifying the prefixpattern of vignette comments. |
final | If |
source | If |
maxLines | The maximum number of lines to scan. |
... | Not used. |
Value
Returns a namedlist or NULL if a non-vignette.
Author(s)
Henrik Bengtsson
Locates and parses all vignettes
Description
Locates and parses all vignettes.
Usage
parseVignettes(path=".", pattern="[.][^.~]*$", ..., drop="^dummy.tex$")Arguments
path | The directory where to search for vignettes. |
pattern | Filename pattern to locate vignettes. |
... | Additional arguments passed to |
drop | A |
Value
Returns alist where each element corresponds to anidentified vignette source file. A file is considered to bea vignette source file if it has\Vignette.*{} markupsin the top 50 lines.Each such vignette element consists of a namedlist withthe parse\Vignette.*{} information.
Author(s)
Henrik Bengtsson
Processes all RSP preprocessing directives
Description
Processes all RSP preprocessing directives.
Usage
## S3 method for class 'RspDocument'preprocess(object, recursive=TRUE, flatten=TRUE, envir=parent.frame(), clipboard=new.env(), ..., verbose=FALSE)Arguments
recursive | If |
flatten | If |
envir | The |
clipboard | An |
... | Not used. |
verbose | See |
Value
Returns anRspDocument.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Prints RSP arguments
Description
Prints RSP arguments returned byrargs().
Usage
## S3 method for class 'RspArguments'print(x, ...)Arguments
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
rargs().
Prints a summary of an RSP object
Description
Prints a summary of an RSP object.
Usage
## S3 method for class 'RspObject'print(x, ...)Arguments
... | Not used. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspObject.
Processes an RSP file product
Description
Processes an RSP file product.
Usage
## S3 method for class 'RspProduct'process(object, type=NULL, envir=parent.frame(), workdir=NULL, ..., recursive=TRUE, verbose=FALSE)Arguments
type | A |
workdir | A temporary working directory to use during processing.If |
... | Optional arguments passed to the processor |
recursive | If a positive number (or + |
verbose | See |
Value
Returns the processed RSP product output as anotherRspProduct.If no processor exists, the input object itself is returned.
Author(s)
Henrik Bengtsson
Gets RSP arguments of an RSP document
Description
Gets RSP arguments of an RSP document, if any.
Usage
## Default S3 method:rargs(...)Arguments
... | Arguments passed to |
Details
Any RSP preprocessing variable with an 'description' attributeis considered to be an RSP argument.
Value
Returns adata.frame of class 'RspArguments'.
Author(s)
Henrik Bengtsson
See Also
rfile().
Examples
path <- system.file("rsp_examples", package="R.rsp")args <- rargs(file="LoremIpsum.tex.rsp", path=path)print(args)Evaluates an RSP string and outputs the generated string
Description
Evaluates an RSP string and outputs the generated string.
Usage
## Default S3 method:rcat(..., file=NULL, path=NULL, envir=parent.frame(), args="*", output="", buffered=TRUE, append=FALSE, verbose=FALSE) ## Default S3 method:rsource(file, path=NULL, envir=parent.frame(), output="", buffered=FALSE, ...)Arguments
... | A |
file,path | Alternatively, a file, a URL or a |
envir | The |
args | A named |
output | A |
buffered | If |
append | Only applied if |
verbose | See |
Value
Returns (invisibly) the outputtedRspStringProduct.
Processing RSP strings from the command line
UsingRscript andrcat(), it is possible to processan RSP string and output the result from the command line. For example,
Rscript -e "R.rsp::rcat('A random integer in [1,<%=K%>]: <%=sample(1:K, size=1)%>')" --args --K=50
parses and evaluates the RSP string and outputs the result tostandard output.A CLI-friendly alternative to the above is:
Rscript -e R.rsp::rcat "A random integer in [1,<%=K%>]: <%=sample(1:K, size=1)%>" --args --K=50
rsource()
Thersource(file, ...) is a convenient wrapperforrcat(file=file, ..., output="", buffered=FALSE).As an analogue,rsource() is to an RSP file whatsource() is to an R script file.
Author(s)
Henrik Bengtsson
See Also
To store the output in a string (instead of displaying it), seerstring().For evaluating and postprocessing an RSP document andwriting the output to a file, seerfile().
Examples
rcat("A random integer in [1,100]: <%=sample(1:100, size=1)%>\n")# Passing argumentsrcat("A random integer in [1,<%=K%>]: <%=sample(1:K, size=1)%>\n", args=list(K=50))Compiles an RSP document into a preprocessed and validated RSP document
Description
Compiles an RSP document into a preprocessed and validated RSP document.
Usage
## Default S3 method:rclean(..., file=NULL, path=NULL, envir=parent.frame(), args="*", verbose=FALSE)Arguments
... |
|
file,path | Alternatively, a file, a URL or a |
envir | The |
args | A named |
verbose | See |
Value
Returns anRspString.
Author(s)
Henrik Bengtsson
See Also
Examples
# RSP-embedded text to a preprocessed and validated RSP strings <- rclean('Current <%@include content="time"%> is <%=Sys.time()%>\n')print(s)Compiles an RSP document and returns the generated source code script
Description
Compiles an RSP document and returns the generated source code script.
Usage
## Default S3 method:rcode(..., file=NULL, path=NULL, output=NULL, workdir=NULL, envir=parent.frame(), args="*", verbose=FALSE)Arguments
... |
|
file,path | Alternatively, a file, a URL or a |
output | A |
workdir | The working directory to use after parsing andpreprocessing.If argument |
envir | The |
args | A named |
verbose | See |
Value
Returns anRspFileProduct if possible,otherwise anRspSourceCode.
Author(s)
Henrik Bengtsson
See Also
Examples
# RSP-embedded text to an R scriptcode <- rcode("Current time is <%=Sys.time()%>\n")cat(code, sep="\n")# RSP-embedded text to a shell scriptcode <- rcode("Current time is <%=date%>\n", language="sh")cat(code, sep="\n")Compiles an RSP document
Description
Compiles an RSP document.
Usage
## Default S3 method:rcompile(..., file=NULL, path=NULL, output=NULL, workdir=NULL, envir=parent.frame(), args="*", until="*", verbose=FALSE)Arguments
... |
|
file,path | Alternatively, a file, a URL or a |
output | A |
workdir | The working directory to use after parsing andpreprocessing.If argument |
envir | The |
args | A named |
until | Specifies how far the compilation should proceed. |
verbose | See |
Value
Returns anRspString,RspDocument oranRspFileProduct (depending on argumentoutput).
Author(s)
Henrik Bengtsson
See Also
Asserts that certain attributes exist
Description
Asserts that certain attributes exist.
Usage
## S3 method for class 'RspDirective'requireAttributes(this, names, condition=c("all", "any"), ...)Arguments
condition | A |
... | Not used. |
Value
Returns itself (invisibly).
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDirective.
Evaluates and postprocesses an RSP document and outputs the final RSP document file
Description
Evaluates and postprocesses an RSP document and outputs the final RSP document file.
Usage
## Default S3 method:rfile(file, path=NULL, output=NULL, workdir=NULL, type=NA, envir=parent.frame(), args="*", postprocess=TRUE, ..., verbose=FALSE)Arguments
file,path | Specifies the RSP file to processed, which canbe a file, a URL or a |
output | A |
workdir | The working directory to use after parsing andpreprocessing, but whileevaluating andpostprocessingthe RSP document.If argument |
type | The default content type of the RSP document. By default, itis inferred from the |
envir | The |
args | A named |
postprocess | If |
... | Additional arguments passed to the RSP engine. |
verbose | See |
Value
Returns anRspProduct.If argumentoutput specifies a file, then this isanRspFileProduct.
Processing RSP files from the command line
UsingRscript andrfile(), it is possible to processan RSP file from the command line. For example,
Rscript -e "R.rsp::rfile('RSP_refcard.tex.rsp')"
parses and evaluates ‘RSP_refcard.tex.rsp’ and output ‘RSP_refcard.pdf’ in the current directory.A CLI-friendly alternative to the above is:
Rscript -e R.rsp::rfile RSP_refcard.tex.rsp
Author(s)
Henrik Bengtsson
See Also
Examples
path <- system.file("exData", package="R.rsp")pathname <- rfile("random.txt.rsp", path=path, output=file.path(tempdir(), "random.txt"))print(pathname)lines <- readLines(pathname, warn=FALSE)cat(lines, collapse="\n")file.remove(pathname)# Passing argumentspath <- system.file("exData", package="R.rsp")pathname <- rfile("random-args.txt.rsp", path=path, args=list(K=50), output=file.path(tempdir(), "random-args.txt"))print(pathname)lines <- readLines(pathname, warn=FALSE)cat(lines, collapse="\n")file.remove(pathname)## Not run: # Compile and display the main vignette (requires LaTeX)if (isCapableOf(R.rsp, "latex")) { path <- system.file("doc", package="R.rsp") pdf <- rfile("Dynamic_document_creation_using_RSP.tex.rsp", path=path) cat("Created document: ", pdf, "\n", sep="") if (interactive()) browseURL(pdf)}## End(Not run)A tangle function for RSP documents
Description
A tangle function for RSP documents.This function is for RSP whatStangle is for Sweave documents.
Usage
rspTangle(file, ..., envir=new.env(), pattern="(|[.][^.]*)[.]rsp$")Arguments
file | The file to be tangled. |
... | Not used. |
envir | The |
pattern | A filename pattern used to identify the name. |
Value
Returns the absolute pathname of the generated R source code file.
Author(s)
Henrik Bengtsson
See Also
rspWeave()
A weave function for RSP documents
Description
A weave function for RSP documents.This function is for RSP whatSweave is for Sweave documents.
Usage
rspWeave(file, ..., postprocess=TRUE, clean=TRUE, quiet=FALSE, envir=new.env(), .engineName="rsp")Arguments
file | The file to be weaved. |
... | Not used. |
postprocess | If |
clean | If |
quiet | If |
envir | The |
.engineName | Internal only. |
Value
Returns the absolute pathname of the generated RSP product.The generated RSP product is postprocessed, if possible.
Author(s)
Henrik Bengtsson
See Also
Evaluates an RSP string and returns the generated string
Description
Evaluates an RSP string and returns the generated string.
Usage
## Default S3 method:rstring(..., file=NULL, path=NULL, envir=parent.frame(), args="*", verbose=FALSE)Arguments
... | A |
file,path | Alternatively, a file, a URL or a |
envir | The |
args | A named |
verbose | See |
Value
Returns anRspStringProduct.
Author(s)
Henrik Bengtsson
See Also
To display the output (instead of returning a string), seercat().For evaluating and postprocessing an RSP document andwriting the output to a file, seerfile().
Examples
x <- rstring("A random integer in [1,100]: <%=sample(1:100, size=1)%>\n")cat(x)# Passing argumentsx <- rstring("A random integer in [1,<%=K%>]: <%=sample(1:K, size=1)%>\n", args=list(K=50))cat(x)Decomposes a URL into its components
Description
Decomposes a URL into its components.
Usage
## Default S3 method:splitUrl(url, ...)Arguments
url | A |
... | Not used. |
Value
Returns a namedlist of URL components.
Author(s)
Henrik Bengtsson
References
[1]https://en.wikipedia.org/wiki/URI_scheme
Starts the HTTP daemon and launches the help page
Description
Starts the HTTP daemon and launches the help page.
Usage
## S3 method for class 'HttpDaemon'startHelp(static, ...)Arguments
... | Arguments passed to |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Subsets an RspDocument
Description
Subsets an RspDocument.
Usage
## S3 method for class 'RspDocument'subset(x, subset, ...)Arguments
subset | An |
... | Not used. |
Value
Returns anRspDocument.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Drops all text-outputting calls from the source code
Description
Drops all text-outputting calls from the source code.
Usage
## S3 method for class 'RspSourceCode'tangle(...)Arguments
... | Not used. |
Value
Returns aRspSourceCode objects.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCode.
Tidy up the RSP source code
Description
Tidy up the RSP source code.
Usage
## S3 method for class 'RspSourceCode'tidy(object, format=c("asis"), collapse="\n", ...)Arguments
format | A |
collapse | How source code lines should be collapsed. |
... | Not used. |
Value
Returns an @RspSourceCode of the same class as the input source code.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCode.
Escapes character strings to become LaTeX compatible
Description
Escapes character strings to become LaTeX compatible.
Usage
## S3 method for class 'character'toLatex(object, ...)Arguments
object | |
... | Not used. |
Value
Acharactervector of N strings.
Author(s)
Henrik Bengtsson
See Also
toLatex for escapingsessionInfo objects.
Translates the RSP document into R source code
Description
Translates the RSP document into R source code.
Usage
## S3 method for class 'RspDocument'toR(object, factory=NULL, ...)Arguments
factory | |
... | Optional arguments passed to |
Value
Returns the R source code as anRspRSourceCode.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Parses and translates the RSP string into R code
Description
Parses and translates the RSP string into R code.
Usage
## S3 method for class 'RspString'toR(object, envir=parent.frame(), ...)Arguments
envir | The |
... | Not used. |
Value
Returns the code as anRspRSourceCode.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspString.
Translates an RSP document to source code
Description
Translates an RSP document to source code.
Usage
## S3 method for class 'RspSourceCodeFactory'toSourceCode(object, doc, ...)Arguments
... | Not used. |
Value
Returns the generated source code as aRspSourceCode object.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspSourceCodeFactory.
Trims each of the RSP constructs
Description
Trims each of the RSP constructs.
Usage
## S3 method for class 'RspDocument'trim(object, ..., verbose=FALSE)Arguments
... | Not used. |
verbose | See |
Value
Returns the trimmedRspDocument.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Trims all non-text RSP constructs
Description
Trims all non-text RSP constructs.
Usage
## S3 method for class 'RspDocument'trimNonText(object, ..., verbose=FALSE)Arguments
... | Not used. |
verbose | See |
Details
For this method to work properly, the RspDocument should not containanyRspUnparsedDirective:s orRspUnparsedExpression:s,i.e. they should already have been parsed.
Value
Returns anRspDocument.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspDocument.
Checks whether an Rnw file is a Sweave or a knitr file
Description
Checks whether an Rnw file is a Sweave or a knitr file.
Usage
## Default S3 method:typeOfRnw(filename, path=NULL, default="application/x-sweave", ...)Arguments
filename,path | The filename and (optional) path of the Rnw file. |
default | A |
... | Not used. |
Value
Returns acharacter string.
Author(s)
Henrik Bengtsson
See Also
TBA.
Views the RSP product
Description
Views the RSP product.
Usage
## S3 method for class 'RspProduct'view(...)Arguments
... | Not used. |
Value
Returns the RSP product (invisibly).
Author(s)
Henrik Bengtsson
See Also
For more information seeRspProduct.
Writes a string to the HTTP output connection
Description
Writes a string to the HTTP output connection.
Usage
## S3 method for class 'HttpDaemon'writeResponse(static, ...)Arguments
... | A set of |
Details
Note: For efficiency, there is no check if the HTTP daemon isstarted or not.
Value
Returns (invisibly) the number of characters written.
Author(s)
Henrik Bengtsson
See Also
For more information seeHttpDaemon.
Writes an RSP response to the predefined output
Description
Writes an RSP response to the predefined output.
Usage
## S3 method for class 'RspResponse'writeResponse(...)Arguments
... | Objects to be pasted together and outputted. |
Value
Returns nothing.
Author(s)
Henrik Bengtsson
See Also
For more information seeRspResponse.