l_toR: Convert a Tcl Object to some other R object
Description
Return values from .Tcl
and tcl
are
of class tclObj
and often need to be mapped to a different data
structure in R. This function is a helper class to do this mapping.
Usage
l_toR(x, cast = as.character)
Value
A object that is returned by the function specified with the
cast
argument.
Arguments
- x
a tclObj
object
- cast
a function to conver the object to some other R object