RspEngine: Class for processing [R] Server Pages (RSP)

Description Usage Arguments Fields and Methods Author(s) See Also Examples

Description

Package: R.io
Class RspEngine

Object
~~|
~~+--RspEngine

Directly known subclasses:

public static class RspEngine
extends Object

Class for processing [R] Server Pages (RSP).

Usage

1

Arguments

out

Output connection where to response should be written. If NULL, the output is sent to the standard output.

Fields and Methods

Methods:

getCurrentConnection -
getCurrentPath -
getHtmlPrintStream -
getOutput -
getOutputPath -
parseAttributes -
process -
processRspCode -
throwException -

Methods inherited from Object:
$, $<-, [[, [[<-, as.character, attach, attachLocally, clearCache, clone, detach, equals, extend, finalize, gc, getEnvironment, getFields, getInstanciationTime, getStaticInstance, hasField, hashCode, ll, load, objectSize, print, save

Author(s)

Henrik Bengtsson (http://www.braju.com/R/)

See Also

For other HTML output options, see HtmlPrintStream.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
library(R.lang)  # System

inn <- system.file("rsp", "RspEngine.rsp", package="R.io")
file.show(inn)

out <- File$createTempFile("RspEngine-", ".html")
cat("Writing HTML code to ", out, "...", sep="")
rsp <- RspEngine(out)
con <- file(inn)
process(rsp, con)
cat("ok\n")

if (interactive()) {
  System$openBrowser(out)
}

HenrikBengtsson/R.io documentation built on May 6, 2019, 11:54 p.m.