Skip to content

[R-gui] Using tcltk language with R system

2 messages · mcaj@tci.ufal.br, James Wettenhall

#
Hello, Does anybody know how can i call a R function in a tcltk file? I made 
a tcltk file, but I need call functions in R. i.e: in R I can put .Tcl("tcltk 
statement"). There are a same command to call R in a tcltk file?

  I want to make a R Gui using tcltk language, do you recommend use a tcltk or 
a R pack tcltk and don't use tcltk language?

  Thanks for your attention.


  Marcos Cerqueira J?nior
 Alagoas University - Brazil

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/
#
Marcos,

Do you really want to call R from Tcl?  Which features of 
the Tcl scripting language appeal to you?  Or is it just easier 
to find examples of Tk widgets written in Tcl?

I have put together some examples of creating widgets with the 
tcltk package in R:

http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/

If you want to call R functions from another language, have a 
look in the R-admin document that comes with R, in particular, 
see:
build R as a shared library

And the R-exts document may be useful as well, if you want to 
see how to interface R functions with C code.

To allow Tcl/Tk to be called from R, Peter Dalgaard has done 
some clever stuff in interfacing the two event loops.  Would you 
have to reinvent some of this if you call R from Tcl?  I don't 
know.

Regards,
James
On Wed, 12 Nov 2003 mcaj@tci.ufal.br wrote: