Typed object
ts_object.RdThis is the base type for all typed objects, and can be used to define custom types.
Arguments
- input_type
The type of the object that Typescript expect to send to R.
- return_type
The type of the object that Typescript expects to recieve from R.
- default
The default value of the object.
- check
A function that checks the object and returns it if it is valid. This operates on the R side and is mostly for development and debugging purposes. It is up to the developer to ensure that all functions return the correct type of object always.
- generic
logical, if
TRUEthen the object is a generic type.- x
An object
- which
Which type to get, either "input" or "return"
- type
A ts object