Re: [Rd] accessing tcl variables within R and tcl

2010-08-12 Thread Peter Dalgaard
Adrian Waddell wrote: > Dear R users, > > I have some troubles with dealing with tclObj objects. I try to explain > it with a toy example: > > Say I define the following tcl procedure which just prints out each list > element > > library(tcltk) > .Tcl('proc test {myList} { > foreach i $myLis

Re: [Rd] accessing tcl variables within R and tcl

2010-08-12 Thread Gabor Grothendieck
On Thu, Aug 12, 2010 at 2:14 PM, Adrian Waddell wrote: > Dear R users, > > I have some troubles with dealing with tclObj objects. I try to explain > it with a toy example: > > Say I define the following tcl procedure which just prints out each list > element > > library(tcltk) > .Tcl('proc test {m

[Rd] accessing tcl variables within R and tcl

2010-08-12 Thread Adrian Waddell
Dear R users, I have some troubles with dealing with tclObj objects. I try to explain it with a toy example: Say I define the following tcl procedure which just prints out each list element library(tcltk) .Tcl('proc test {myList} { foreach i $myList { puts stdout $i } }') and I c