search for: tkroot

Displaying 6 results from an estimated 6 matches for "tkroot".

2015 Jan 14
2
Is the tcltk failure in affylmGUI related to R bug 15957
...d): [1] Biostrings_2.34.1 DBI_0.3.1 RSQLite_1.0.0 splines_3.1.2 XVector_0.6.0 zlibbioc_1.12.0 I think the relevant code that is resulting in the error is generated by this function in main.R: tclArrayVar <- function(){ Try(n <- evalq(TclVarCount <- TclVarCount + 1, .TkRoot$env)) Try(name <- paste("::RTcl", n,sep = "")) Try(l <- list(env = new.env())) Try(assign(name, NULL, envir = l$env)) Try(reg.finalizer(l$env, function(env) tcl("unset", ls(env)))) Try(class(l) <- "tclArrayVar") Try(.Tcl...
2015 Jan 18
1
Is the tcltk failure in affylmGUI related to R bug 15957
Thanks Peter and Dan for your replies. After learning a bit more about tcltk and environments etc. I have replaced Try(n <- evalq(TclVarCount <- TclVarCount + 1, .TkRoot$env)) with Try(n <- .TkRoot$env$TclVarCount <- .TkRoot$env$TclVarCount +1L) as you suggest. It now works for both R-3.1.1 and R-3.1.2+ (My understanding is that the Try function is there to put a GUI box around the error messages.) I shall update affylmGUI versions accordingly soon....
2015 Jan 14
0
Is the tcltk failure in affylmGUI related to R bug 15957
Seems unlikely that that particular bug is involved. I seem to recall some change related to inadvertent variable capture in .TkRoot$env (?). At any rate, we currently have > parent.env(.TkRoot$env) <environment: R_EmptyEnv> which used to be > parent.env(.TkRoot$env) <environment: R_GlobalEnv> as a result, this won't work any more because R_EmptyEnv has no operators and functions in it: > evalq(x &l...
2004 Dec 28
1
win variable in tcltk
The following gives an error message: library(tcltk) win <- list(env="A") tt <- tktoplevel() but <- tkbutton(tt, text="X", command=expression(tkdestroy(tt))) tkgrid(but) however, if one comments out the win line (and removes the win variable) then it works. It seems that tcltk is making use of a variable called win with a component name of env and I just happened
2007 Sep 27
10
Adding more sugar to wxSugar
Hi all, New wxRuby event handling offers the choice between using blocks or methods seamlessly and easily. This is great respectively for simple app and more complex app. Nevertheless, currently the creation of an application, a frame, or a dialog is very tedious for simple app : - you need to create a subclass of Wx::App, Wx::Frame ... - you need to put the initialization code in the initialize
2010 Sep 16
3
funciones en R potencialmente peligrosas via web?
...#39;.External', '.External.graphics', '.Fortran', '.readRDS', '.saveRDS', '.Script', '.Tcl', '.Tcl.args', '.Tcl.callback', '.Tk.ID', '.Tk.newwin', '.Tk.subwin', '.Tkroot', '.Tkwin', 'basename', 'browseURL', 'bzfile', 'capture.output', 'close', 'close.screen', 'closeAllConnection', 'data.entry', 'data.restore', 'dataentry', 'de', 'dev.co...