[R] tcl/tk with R

From: Charles Annis, P.E. <Charles.Annis_at_statisticalengineering.com>
Date: Thu 06 Jul 2006 - 03:28:22 EST


Greetings:

I would like to use tcl/tk with R, and have read "A Primer on the R-Tcl/Tk Package" by Peter Dalgaard in Rnews, Volume 1/3, September 2001.

Are there more recent do-it-yourself instructions available?

I have been unsuccessful with the example in the tcltk2 package due to a syntax error.

I think that I have isolated the problem to this code snippet:

for (i in 1:length(Themes)) {
tkadd(themeMenu, "command", label = Themes[i], command = eval(parse(text = paste("function() tk2theme(\"", Themes[sep = "")))) }

And the problem seems to be here:

paste("function() tk2theme(\"", Themes[sep = ""))

Error: syntax error in "paste("function() tk2theme(\"", Themes[sep = "")"

Further R seems not to like ' \" '

A closer look at the paste command suggests that it is incomplete and should also contain something like

Themes[i], sep=""

I am using R Version 2.3.1 (2006-06-01) on a DELL WindowsXP system with 2 gig RAM.

Many thanks for your counsel.

Charles Annis, P.E.

Charles.Annis@StatisticalEngineering.com phone: 561-352-9699
eFax:  614-455-3265
http://www.StatisticalEngineering.com
 



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 06 03:45:33 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Thu 06 Jul 2006 - 08:16:21 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.