search for: tkdensity

Displaying 20 results from an estimated 20 matches for "tkdensity".

2005 Oct 24
1
tk problem with R 2.2.0 on wine/linux
...packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for a HTML browser interface to help. Type 'q()' to quit R. [Previously saved workspace restored] > library(tcltk) Loading Tcl/Tk interface ... done > demo(tkdensity) demo(tkdensity) ---- ~~~~~~~~~ Type <Return> to start : > require(tcltk) || stop("tcltk support is absent") [1] TRUE > require(graphics) [1] TRUE > require(stats) [1] TRUE > local({ y <- NULL xlim <- NULL size <- t...
2004 Feb 27
3
locator(n=0)
...the left button of the mouse. How can I determine the mouse position without any click? Is it possible to extend locator in a way that locator(n=0) outputs the coordinates at once, without any click event? TclTk allows us to define very nice animations and demonstrations, see for example: demo(tkdensity). But sometimes it is much better to have output and control in one window and to be able to respond to changes of the cursor position (e.g. to that a bandwidth). Thanks! --------------------------------------------------------------------------- Peter Wolf, pwolf at wiwi.uni-bielefeld.de Depart...
2001 May 10
1
TclTk problems
Dear R-Users I'm running SuseLinuxPPC 7.1 and R 1.2.3 installed by sources. I've tried to run the demo for Tk (tkdensity e.g.) but R says " > require(tcltk) || stop("tcltk support is absent") Loading required package: tcltk Error in firstlib(which.lib.loc, package) : Tcl/Tk support is not available on this system Error in eval.with.vis(expr, envir, enclos) : tcltk support is absen...
2006 Nov 04
1
tcltk difficulties
Friends: I have a tcltk widget for inputting constants and other values that are needed by subsequent R functions. My widget works well. I have an OnOK function that does what I had hoped it would. Among other input items the widget also uses 6 radio buttons to select one of 6 choices. It functions as it should. Here is the problem: I would like one of the buttons to be the default and to
2002 Mar 06
3
Loading tcltk package fails on WinMe/Cygwin but works with Rgui
I am investigating how well R/tcltk is supported on different system and I ran into the same problem as Christian Schulz reported on February 7, 2002. I am using [R] v1.4.1 on WinMe and ActiveTcl 8.3.2. Loading tcltk within Rgui works just fine and both demo(tkdensity) and demo(tkttest) works as expected. However, when I start R from my Cygwin terminal dyn.load() fails to load the library: % R --vanilla > library(tcltk) Error in dyn.load(x, as.logical(local), as.logical(now)) : unable to load shared library "C:/PROGRA~1/R/RW1041/library/tcltk/li...
2000 Aug 09
2
tcltk_example
...e tcltk package, to a simple gui. My search for R code which utilizes these two functions has come up empty. Currently, I am attempting to translate pure "Tcl/Tk" code to R with little to no success. So far, the most helpful tool for learning the tcltk R commands has been the "tkdensity()" and "tkttest()" examples, included in the tcltk package. Any other (simple) examples of gui construction utilizing the tkmenubutton() or tklistbox() functions would be greatly appreciated. Jason Fisher ________________________________________________________________________ Ge...
2003 Oct 30
1
RAqua and AquaTclTk
...t calling tkStartGUI. I switched back to 10.2.6 and it works as well. I think this is due to the "last minute" fix in RAqua now using idle timers because of too much cpu usage. Some "mouse" trick is needed though. If you want to test it you can just try library(tcltk) demo(tkdensity) press return and wait for quartz device to show the density plot. Then to interact with the widgets just click outside R (everywhere but not windows related to R) and click on the tk-window to activate it. Now you can interact with the widgets for "some time", which means that after...
2003 Nov 08
1
RAqua with X11 TclTk
...uaTclTk. http://www.economia.unimi.it/R/RAquaX11.dmg (15 MB disk image) The idea is that you: launch RAqua, launch X application (the X Server), and from inside R type x11() # just tt set DISPLAY to :0.0. Eventually close this window device, we don't need this. load(tcltk) quartz() demo(tkdensity) It works on my Panther machine as well and it comes with three installers for: libreadline, tcltk (the X11 version) and the libxml2 in case you want to use the prebuilt XML package. Thomas Lumley has found oddities in configuring/building R on Panther so I built it on Jaguar and it works as...
2002 Jul 02
5
R windows FAQ (PR#1733)
...(NULL) (170.54.59.160) In the R windows FAQ, item 3.6 (Package TclTk does not work) currently has this line: Sys.putenv("TCL_LIBRARY"="c:/Program Files/Tcl/lib/tcl8.3") I find that if I execute the following two lines after starting R, I can then do library(tcltk) and demo(tkdensity) as usual. I do not need to modify my autoexec.bat this way! Anyway, using the following two lines in the FAQ might be useful to some people. Sys.putenv("TCL_LIBRARY"="c:/Tcl/lib/tcl8.3") Sys.putenv("PATH"=paste(Sys.getenv("PATH"),...
2003 Feb 27
0
R-devel/R-patched crossed with Xterm/IDLE
...rtz device or with native tcltk, because the windows do not accept events (cannot be brought to the front). I know why this does not work (Terminal.app is the frontmost application and it does not know anything about those windows). IDLE/Rpy with R-devel can do some of the tcltk demos (tkcanvas, tkdensity, tkfaq) but not all (tkttest,tkfindfile). And, surprisingly enough, IDLE/Rpy with R-patched can do the same demos (and fails on the same demos), although its tcltk is compiled using fink's X11 based tk. No X server is running in these cases. I have no idea why some demos work and others don...
2006 Apr 07
2
Should demo files be run as part of R CMD check?
I was a bit suprised to note that demo files are not run as part of R CMD check. This seems out of keeping with the philosophy of running all code contained in the package (in the source, in examples etc). Should demo files be checked as part of R CMD check? Hadley
2000 Jul 19
1
How to use tcltk?
Hallo Tk experts, the Tcl/Tk package allows to define very nice widgets for starting R functions, for printing results and for interactive parameter input. tkdensity.R and tkttest.R demonstrate this and both demos explain how some of the tk functions can be used. For constructing new widgets I would like to see further examples showing Tcl/Tk package in action. Therefore my question: Is there a pool of well designed applications of tk functions? / Have you crea...
2001 Feb 09
1
demo(tkttest) exits with error messages
I've just installed tcl version 8.3 for windows for use with rw1021, running on win95 (4.00.950). demo(tkttest) gives the following error messages. > require(tcltk) || stop("tcltk support is absent") Loading required package: tcltk Error in firstlib(which.lib.loc, package) : TCL_LIBRARY is not set Error in eval.with.vis(expr, envir, enclos) : tcltk support is
2012 May 18
4
Menus - best practices?
Hello, I need to design a fairly simple front-end for someone to use an R script system that I've built. My thought was to just use the text based menus available in the base R package, perhaps in some kind of loop. How have other people done this? Any "best practices" that you can recommend? Thanks! -- Noah Silverman UCLA Department of Statistics 8117 Math Sciences Building
2002 May 30
3
Building a stand-alone package
Dear R users, I'm working with Windows 2000 and R -- note that I could maybe work with Linux too... I would like to know if it is possible to build a stand-alone statistical package which: -- could be programmed in R language, -- could have a nice graphical interface with buttons and menus (this package will be distributed to non-statistician people), -- could realize statistical operations,
2000 Jun 15
4
R-1.1.0 is released
...try fields and so forth in very few lines of code. It is still somewhat experimental so don't go churning out thousands of lines of GUI code and then blame us for changing the API later on. It does not currently work with GNOME because of event loop differences. See demo(tkttest) and demo(tkdensity). o Internally using global R_Expressions [getOption("expressions")] dramatically speeds up eval.c. o The X11 support code is now in a separate shared library, and flag --gui=none will run R without X11 support (and so x11() and data.entry() will not be available). R BATCH...
2000 Jun 15
4
R-1.1.0 is released
...try fields and so forth in very few lines of code. It is still somewhat experimental so don't go churning out thousands of lines of GUI code and then blame us for changing the API later on. It does not currently work with GNOME because of event loop differences. See demo(tkttest) and demo(tkdensity). o Internally using global R_Expressions [getOption("expressions")] dramatically speeds up eval.c. o The X11 support code is now in a separate shared library, and flag --gui=none will run R without X11 support (and so x11() and data.entry() will not be available). R BATCH...
2001 Nov 13
4
Floating windows in TCLTK
Dear anybody dealing with TCLTK on R I'm trying, without any success, to get a simple TCLTK window to remain floating on top of the RGui and RConsol windows when the later have focus. I cannot find reference in the TCKTK documentation and fear that I'm missing something quite fundamental. My objective is to make a simple button populated menu to invoke R functions. I wish the TCLTK menu
2009 Dec 14
0
R 2.10.1 is released
...ixed = TRUE) with a single-byte pattern could conceivably have matched part of a multibyte character in a non-UTF-8 MBCS. o findLineNum() and setBreakpoint() would sometimes fail if the specified file was not in the current directory. o Package tcltk's demo(tkdensity) was broken in 2.9.0 when demo() was changed to set par(ask = TRUE). o gsub() with backrefs could fail on extremely long strings (hundreds of thousands of characters) due to integer overflow in a length calculation. o abline(*, untf=TRUE) now uses a better x-gr...
2009 Dec 14
0
R 2.10.1 is released
...ixed = TRUE) with a single-byte pattern could conceivably have matched part of a multibyte character in a non-UTF-8 MBCS. o findLineNum() and setBreakpoint() would sometimes fail if the specified file was not in the current directory. o Package tcltk's demo(tkdensity) was broken in 2.9.0 when demo() was changed to set par(ask = TRUE). o gsub() with backrefs could fail on extremely long strings (hundreds of thousands of characters) due to integer overflow in a length calculation. o abline(*, untf=TRUE) now uses a better x-gr...