[R] Get the output of a function in R GUI

Jesús Para Fernández j.para.fernandez at hotmail.com
Thu Oct 22 10:49:40 CEST 2015


Hi,

I want to create my own RGUI, so I´m using tcltk for that. 

In a very simple example, I want to get the response of a function into a tktext, so I have done this:
data<-c(2,3,5,2)
tt<-tktoplevel
text<-tktext(tt)
tkpack(text)
sum(data)

How can I get the output of sum(data) in my tktext??

Thanks!
Jesús 
 		 	   		  
	[[alternative HTML version deleted]]



More information about the R-help mailing list