[R] R_eval in tcltk library

Samak, Vele vele.samak at ssmb.com
Tue Oct 24 20:50:25 CEST 2000

Is there a method with the current tcltk library in R to call back an R
function within the .Tcl("...") interpreter? 

I can't find anything documented, and I don't understand the usefulness of
the .Tcl.callback() function. Browsing through the tcltk source code I found
two functions R_eval and R_call that seem to take input from the .Tcl
interpreter and parse them through the R evaluator. Unfortunately I get
Segmentation Fault (core dump) whenever I execute .Tcl("R_eval") or
.Tcl("R_call"). Also, the results from these functions appears to be lost
somewher. Both functions in the c code capture the result of eval in a
variable called ans, but that variable doesn't go anywhere apparently. 

If someone has examples of calling R functions from .Tcl I would greatly
appreciate it. Thanks,

Vele Samak, Vice President
Global Quantitative Research
Salomon Smith Barney 
7 WTC, New York, NY 10048, 212-783-7007
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list