Re: [Rd] Adding Tcl source to an R package

2010-08-11 Thread Andrew Piskorski
On Tue, Aug 10, 2010 at 04:13:18PM -0400, Adrian Waddell wrote: > >> My Question: Where can I put my procedures in a *.tcl file within my > >> package structure and how do I make my R package to load the Tcl > >> procedures? And will these functions be within a Tcl namespace? Whether you use Tcl

Re: [Rd] Adding Tcl source to an R package

2010-08-10 Thread Adrian Waddell
On 08/10/2010 03:42 PM, Gabor Grothendieck wrote: > On Tue, Aug 10, 2010 at 3:33 PM, Adrian Waddell wrote: >> Dear R Community, >> >> I'm writing an R package with a lot of Tcl and Tk code. I use the Tcl >> wrapper functions provided by the tcltk package if possible. However I >> also define "pure

Re: [Rd] Adding Tcl source to an R package

2010-08-10 Thread Gabor Grothendieck
On Tue, Aug 10, 2010 at 3:33 PM, Adrian Waddell wrote: > Dear R Community, > > I'm writing an R package with a lot of Tcl and Tk code. I use the Tcl > wrapper functions provided by the tcltk package if possible. However I > also define "pure" Tcl functions. I so far defined them with the .Tcl > fu

[Rd] Adding Tcl source to an R package

2010-08-10 Thread Adrian Waddell
Dear R Community, I'm writing an R package with a lot of Tcl and Tk code. I use the Tcl wrapper functions provided by the tcltk package if possible. However I also define "pure" Tcl functions. I so far defined them with the .Tcl function, for example (in R): .Tcl('proc test {a b} { return [expr