robj {ambiorix} | R Documentation |
R Object
Description
Treats a data element rendered in a response (res$render
) as
a data object and ultimately uses dput()
.
Usage
robj(obj)
Arguments
obj |
R object to treat. |
Details
For instance in a template, x <- [% var %]
will not work with
res$render(data=list(var = "hello"))
because this will be replace
like x <- hello
(missing quote): breaking the template. Using robj
one would
obtain x <- "hello"
.
Value
Object of class "robj".
Examples
robj(1:10)
[Package ambiorix version 2.2.0 Index]