Description Usage Arguments Details
WebResult
is the class of the object that will be returned
from the run
function of a FastRWeb script back to the browser.
1 2 |
cmd |
string, command passed back to the FastRWeb
interface. Currently supported commands are |
payload |
string, the body (contents) that will be sent back or file name, depending on the command |
content.type |
MIME content type specification as it will be returned to the browser |
headers |
string vector, optional additional headers to be sent to the browser. Must not contain CR or LF! |
x |
object to convert into |
... |
additional arguments passed to the method |
Using a separate class allows automatic conversion of other objects
into the necessary representation - all that is needed is a
as.WebResult
method for that particular object.
WebResult
function can be used to create such objects directly.
as.WebResult
coerces an object into a WebResult
, it is a
generic. This allows methods to be defined for as.WebResult
which act as convertors transforming R objects into web results.
glop glop
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.