l_toR: Convert a Tcl Object to some other R object

View source: R/l_toR.R

l_toRR Documentation

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)

Arguments

x

a tclObj object

cast

a function to conver the object to some other R object

Value

A object that is returned by the function specified with the cast argument.


loon documentation built on July 9, 2023, 5:48 p.m.