robj: R Object

View source: R/render.R

robjR 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)

ambiorix documentation built on April 3, 2025, 9:34 p.m.