l_nestedTclList2Rlist: Convert a Nested Tcl List to an R List

View source: R/nestedLists.R

l_nestedTclList2RlistR Documentation

Convert a Nested Tcl List to an R List

Description

Helper function to work with R and Tcl

Usage

l_nestedTclList2Rlist(
  tclobj,
  transform = function(x) {
     as.numeric(x)
 }
)

Arguments

tclobj

a tcl object as returned by tcl or .Tcl.

transform

a function to transfrom the string output to another data type

Value

a nested R list

See Also

l_Rlist2nestedTclList

Examples


tclobj <- .Tcl('set a {{1 2 3} {2 3 4 4} {3 5 3 3}}')
l_nestedTclList2Rlist(tclobj)

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