Skip to content
Prev 76441 / 398502 Next

tcl/tk return problem

deggle wrote:
I suppose you mean in the User Workspace. Your OnOK function should look 
like that:

OnOK <- function() {
      fileDir<-tclvalue(tkchooseDirectory())
      data.raw <<- ReadAffy(celfile.path=fileDir)
}

Note that the function overwrites any existing 'data.raw', so this could 
be dangerous. Writting directly in the User Workspace is not advised 
from inside a function, but here, it is the simplest way to return a 
result from a tk widget action.
Best

Philippe Grosjean