search for: tclrequire

Displaying 20 results from an estimated 26 matches for "tclrequire".

2012 Mar 25
1
How to install tclRequire(Iwidgets)
hi, i'm trying to make "Tabbed Notebook Widget",but cannot install "tclRequire(Iwidgets)". I installed Activetcl but I don't know what can be the next step to execute "tclRequire(Iwidgets)". how can i do that? Thanks -- View this message in context: http://r.789695.n4.nabble.com/How-to-install-tclRequire-Iwidgets-tp4502775p4502775.html Sent from the R h...
2012 Mar 30
1
Error in use of "gwindow" and ".First" function
...= "tcltk") win <- gwindow("Don't worry", visible = FALSE) } Error message is following, Error : .onLoad failed in loadNamespace() for 'tcltk2', details: call: .tk2dde.require() error: Unable to find the 'dde' Tcl/tk package! Warning messages: 1: In tclRequire("dde") : Tcl package 'dde' not found 2: In tclRequire("dde", warn = TRUE) : Tcl package 'dde' not found Failed with error: ?package ?tcltk2? could not be loaded? Loading required package: gWidgetstcltk Loading required package: tcltk2 Error : .onLoad failed in...
2007 Mar 29
0
tcltk, tclRequire and Tktable help
...nothing about the tcltk library, and the documentation seems very poor. What's the meaning of this error, and is there any way to fix it? I'm running R 2.4.1 in a Windows XP machine where I have almost no privileges (but at home I am the Evil Overlord of a Linux machine...) library(tcltk) tclRequire("Tktable") # [1] FALSE # Warning message: # Tcl package 'Tktable' not found in: tclRequire("Tktable") Alberto Monteiro
2003 Apr 23
1
iwidgets in tcltk in R 1.7.0
...ge. I have set the environment variables TCL_LIBRARY and MY_TCLTK to the directory where I installed ActiveTcl and I have added the Tcl\bin directory containing the DLLs to my PATH environment variable. I can load the tcltk package with library(tcltk) and use all of the standard widgets, but tclRequire("iwidgets") fails : > tclRequire("iwidgets") Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : [tcl] can't find package iwidgets. Any suggestions would be greatly appreciated. Thanks, James ---...
2006 Feb 27
1
TclTk library loading (whole version) Linux
...k8.4.so in /usr/lib My .Renviron file contains: MY_TCLTK=yes TCL_LIBRARY=/usr/lib/tcl8.4 an in my R session: ------------------------------ > Sys.getenv("MY_TCLTK") MY_TCLTK "yes" > Sys.getenv("TCL_LIBRARY") TCL_LIBRARY "/usr/lib/tcl8.4" > tclRequire("BWidgets") [1] FALSE Warning message: Tcl package 'BWidgets' not found in: tclRequire("BWidgets") --------------------------------- Please, some how uses BWidgets could tell if I'm doing something wrong in these steps? I've just installed ESS (Emacs Speaks Stat...
2007 Oct 15
0
iwidgets not found in r on windows
...;) has been used (in which iwidets is present) > try(tcl("package", "names")) <Tcl> http opt tcltest ::Utility::expand Widget ::Utility::number BWidget msgcat Tktable Hierarchy ::Utility Iwidgets registry ::Utility::dump ::Utility::tk ::Utility::string Tcl dde Tk > tclRequire("BWidget") <Tcl> 1.8 > tclRequire("Tktable") <Tcl> 2.9 > tclRequire("Iwidgets") [1] FALSE Warning message: In tclRequire("Iwidgets") : Tcl package 'Iwidgets' not found With regards, Roelof Heddema [[alternative HTML version de...
2003 Mar 27
0
R TclTk iwidgets::combobox
Thanks Peter, I've started a new R session (in Windows) and managed to get both ways working now : ### THIS WORKS !!! ### library(tcltk) tclRequire("IWidgets") tt<-tktoplevel() combo <- tkwidget(tt,"iwidgets::combobox") tkpack(combo) ### AND THIS WORKS TOO !!! ### tt<-tktoplevel() win <- .Tk.subwin(tt) .Tcl(paste("iwidgets::combobox",.Tk.ID(win),.Tcl.args())) tkpack(win) But they both fail in my old...
2003 Apr 17
1
Help with TCL packages
Hello, I am exploring the TCLTK package under R and try to load and use additional TCL libraries (under Windows, with TCL8.3). For example : > addTclPath("C:/TCL/lib/bwidget1.5") > tclRequire("BWidget") <Tcl> 1.5 Loading seems to work, but when I try to create a specific widget : # The main window appears correctly > top=tktoplevel() # Trying to insert a combobox > combo <- tkwidget(top,"BWidget::combobox") Error in structure(.External("dotTcl&...
2007 May 13
1
Dropdown boxes in tcltk and R
...tChoice as a variable in R in general. When I run that code, however, and the ask for fruitChoice it says 'error not found'. I suspect it's because its embedded in a function, but I can't work out how to unravel it. I've tried something like this to no avail. require(tcltk) tclRequire("BWidget") tt <- tktoplevel() tkgrid(tklabel(tt,text="What's your favorite fruit?")) fruits <- c("Apple","Orange","Banana","Pear") comboBox <- tkwidget(tt,"ComboBox",editable=FALSE,values=fruits) tkgrid(comboBox) On...
2010 Apr 27
1
Problem with Tinn-R communicating with REvolution R
...iguration script and gets to the trDDEInstall() function: ## Start DDE trDDEInstall() > trDDEInstall() Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name "dde". In addition: Warning message: In tclRequire("dde", warn = TRUE) : Tcl package 'dde' not found I have not found anything about this on the Tinn-R forum and have had no repsonse from the REvolution R forum. I have checked other R-Help queries but these relate to adding the code for .trPaths which I already have. Does anyone...
2004 Jul 27
1
Re: R-help Digest, Vol 17, Issue 25
...kernel. I'm using the ActiveTcl8.4.6.1-linux-ix86 tcltk libraries. When I run the following comands, however, I get an R segmentation fault: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > library(tcltk) > addTclPath("/usr/local/ActiveTcl/lib") > tclRequire("Img") <Tcl> 1.3 >tkcmd("image","create","photo",tclVar(),file="/path/to/file.jpg") Process R segmentation fault at Tue Jul 27 18:18:40 2004 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ I've run this as root,...
2012 Sep 14
1
tcltk installation problem in R (Mac OS X version)
...hen I installed R. Next, in R, I set the TCL_LIBRARY variable by saying Sys.setenv(TCL_LIBRARY="/usr/local/lib/tcl8.5") and Sys.setenv(TK_LIBRARY="/usr/local/lib/tk8.5") But still when I try to run any GUI-based program, it gives me the error that TCL/TK were not istalled. In tclRequire(tclPkg) : Tcl package 'BWidget' not found I have a suspicion that I am not setting the TCL_LIBRARY right. When I try to set the TCL_VARIABLE to /usr/bin even then it does not work. What am I doing wrong? Please help. Thanks, Nitin -- ΝI+IИ [[alternative HTML version deleted]]
2006 May 22
1
rerender tcltk toplevel
...d add the label to a toplevel that already contains the progress bar updating the label works: tt <-tktoplevel() tkwm.geometry(tt, "250x140") prog <- tclVar("0") label <- tklabel(tt, textvariable=prog) progBar <- tkwidget(tt, "ProgressBar", variable=prog) tclRequire("BWidget") tkgrid(progBar) tkgrid(label) for(i in 1:50) { tmp <- rnorm(1e+05) tclvalue(prog) <- i*2 } Is there a way to explicitly rerender a tcltk toplevel? There must be one since the ProgressBar widget causes this to happen, or am I wrong? Or is there another way I coul...
2004 Apr 23
4
Tcl Tk table
Hi I've a problem with the following example: library(tcltk) .Tcl("array unset tclArray") myRarray <- matrix(1:1000, ncol=20) for (i in (0:49)) for (j in (0:19)) .Tcl(paste("set tclArray(",i,",",j,") ",myRarray[i+1,j+1],sep="")) tt<-tktoplevel() table1 <- tkwidget(tt,"table",variable="tclArray",
2012 Sep 06
1
Package installation errors
...) *A*) When I start *64-bit R (2.14.2)* Loading required package: tcltk Loading required package: R2HTML Error in structure(.External("dotTcl", ..., PACKAGE = "tcltk"), class = "tclObj") : [tcl] invalid command name "dde". In addition: Warning message: In tclRequire("dde", warn = TRUE) : Tcl package 'dde' not found > options(repos='http://cran.stat.ucla.edu') > install.packages("dde",dependencies=T) Warning message: In getDependencies(pkgs, dependencies, available, lib) : package ‘dde’ is not available (for R version...
2009 Sep 28
2
re trieve user input from an tcl/tk interface
...snippet of my code. Could someone tell me what to do? Am I heading in the right direction or is my approach hopeless? :p ------------------------------------------------------------- OnOK = function(){ # I reckon this is where the important stuff should happen... tkdestroy(tt) } require(tcltk) tclRequire("BWidget") tt = tktoplevel() trials = tclVar("100") # I want to suggest default values but they should be editable. entry.trials = tkentry(tt, width = "3", textvariable = trials) tkgrid(tklabel(tt,text="Number of trials:")) tkgrid(entry.trials) Stim...
2005 Aug 23
2
Using tcltk to display jpeg images
Dear R Helpers, Does anyone know how to use tcltk to display jpeg images? The manual says that one must use Tk_PhotoCreateImageFormat to register the jpeg image handler. The "ActiveTcl User Guide" (http://support.serv.ch/lang/tcl/img/doc/img-jpeg.html) says:- "The package img::jpeg is a sub-package of Img. It can be loaded as a part of the complete Img support, via package require
2003 Jul 29
1
Tktable active cell
Thomas Sudler <TSudler at ch.imshealth.com> wrote: > I want to start an action when i click into a cell. Example: When I click > into a cell, a message box should open with the information of the > location of the cell where I clicked in. <SNIP> So I only > need to know how to get the possition of the active cell. Thomas, Getting the active cell is easy, just use :
2006 Jun 21
0
Some R-Tcl/Tk-BWidget newbie questions.
...ings go wrong, and it's probably because of messy code, but I have a difficult time finding out what is the cause. Thanks very much, JeeBee. require(tcltk) || stop("Package tcltk is not available.") # Add path to BWidgets addTclPath(".") version.BWidget <<- tclvalue(tclRequire("BWidget")) start.gui <- function() { # Toplevel tt <- tktoplevel() tkwm.title(tt, "MyTitle") # Notebook ### --> The following line makes R hang with 100% cpu forever #tkpack(tn <- tkwidget(tt, "NoteBook"), fill="both", expand=TRUE) ##...
2006 Aug 09
1
tk combobox question
Hello! The IWigdets::combobox has an option "selectioncommand" to specify a procedure which is called when an item in the combobox is selected. Does ComboBox from Bwidgets have an equal option or is there a simple method to do thi? I haven't found one but i would like to use Bwidgets instead of Iwidgets. Another question which should not be a problem, but at the moment I just