[Rd] Scoping issues

From: Chris Eisley <chris_at_cepheus.net>
Date: Sun 07 Jan 2007 - 05:29:15 GMT


Hi everyone,

I'm trying to split up a large R file that implements a tcl/tk gui into several smaller ones. The problem is that the main GUI creation function defines many tclVars and tkframes that need to be accessible to functions that are currently defined in main function, but which I'd like to move to different source files. These files make up a package, so it seems that using source() is a bad idea. I could try argument passing, but there are a lot of arguments to pass in some cases.

The lexical scoping is hurting me here, but I assume there's a good way to deal with this kind of issue. Any help is greatly appreciated.

-Chris



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Jan 07 16:32:39 2007

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 Sun 07 Jan 2007 - 19:32:38 GMT.

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