Generate an Rserve app from a ts function
ts_app.RdAnything that is not a function simply returns itself.
However, functions are wrapped with Rserve::ocap(),
and the result is subsequently wrapped with ts_app().
Arguments
- x
A ts function object (
ts_function())