Skip to content
Prev 76442 / 398502 Next

tcl/tk return problem

On Wed, 31 Aug 2005, Philippe Grosjean wrote:

            
Maybe simplest, but not a very good way.  See
R_SOURCES/src/library/tcltk/R/utils.R for ideas on how to write a modal
dialog box that returns the value selected.

One problem with <<- is that it does not necessarily write in the
workspace.  You need

   assign("data.raw", ReadAffy(celfile.path=fileDir), envir=.GlobalEnv)

to be sure of that.  (The example code I quote does use <<- but in a
controlled way.)