Skip to content
Prev 156 / 1236 Next

[R-gui] further on the Rcmdr package

John Fox <jfox@mcmaster.ca> writes:
This is definitely not supposed to happen, so perhaps a little session
with gdb to figure out where things are getting stuck? I do have some
suspicions about interference between R and threaded Tcl libs, but
Dirk knows about that.
It might be useful to query the Tcl community on that one. Various
ideas have been suggested, see for instance a search on
groups.google.com for

  tk Windows "always on top"
 
Another, more radical idea could be to get the usual MDI code to
generate a blank window for the Rcmdr, get the hWnd of it somehow and
then use tktoplevel(....,use=hWnd,....). There are several unknowns in
that equation, though.
I played with it briefly. A few random comments:

- Loading packages and installing them from CRAN could be added
  quite easily (there's a bit of stuff in the tkStartGUI
  function, which you'd be welcome to lift).

- It shouldn't be hard to create a list of loadable datasets and
  select from it.

- Perhaps, use with(dataframe, ...) instead of attach/detach
  constructs?

- It's not easy to find out how to convert variables to factors. If
  categorical variables come in as numerics, there are lots of things
  that you cannot do, so the user needs a way to identify and solve
  the problem quickly.

- The recode syntax is a bit arcane. I think SAS/Analyst does this
  kind of stuff with a table.