Generate a javascript odin model from a file, text string or expression.

odin_js(x, ..., options = NULL)

odin_js_(x, ..., options = NULL)

Arguments

x

Either the name of a file to read, a text string (if length is greater than 1 elements will be joined with newlines) or an expression.

...

Arguments passed to odin_options

options

An optional odin_options object. The target element (if present) will be overriden.