Displaying 20 results from an estimated 3000 matches similar to: "use of the tcltk package crashes R 4.0.1 for Windows"
2020 Jun 07
1
use of the tcltk package crashes R 4.0.1 for Windows
John,
The Windows installation instructions document has the following. So, one obvious question is whether you did select it. (I haven't installed on WIndows for ages, so I don't know whether this was changed recently or even whether the selection is on or off by default).
-pd
Using package tcltk
===================
The package tcltk supports building graphical interfaces with Tcl/Tk.
2020 Jun 07
5
use of the tcltk package crashes R 4.0.1 for Windows
So this wasn't tested for a month?
Anyways, Free() is just free() with a check that we're not freeing a null pointer, followed by setting the pointer to NULL. At that point of tcltk.c, we have
for (objc = i = 0; i < length(avec); i++){
const char *s;
char *tmp;
if (!isNull(nm) && strlen(s = translateChar(STRING_ELT(nm, i)))){
// tmp =
2008 Aug 11
3
tkentry that exits after RETURN?
I can set up an entry widget (thanks to an old
post by Barry Rowlingson) that gets a password and
exits when the user clicks on the "OK" button.
Anyone have any clever ideas for returning/
destroying the window when the user types a carriage
return/ENTER in the text window? I've messed around
a little with validate, validatecommand, but don't
see any obvious way to do it ...
2002 Sep 26
3
tcltk - command=function()
hi,
just having the idea create a simple
tcl/tk gui-dialog for different data-file formats
i get starting problems and it would be nice
get some tips/tricks from experienced tcl/tk user in R !
tt <- tktoplevel()
label.widget <- tklabel(tt,text="Decision Tree GUI")
button.widget <- tkbutton(tt,text="Select SPSSFile",
command=function()
2008 Oct 27
1
ttkcombobox
Hi, all,
(sessionInfo at the end)
I've been struggling with the tcltk package and can't seem to get the
ttkcombobox to work. Here's an example:
library(tcltk)
p <- tktoplevel()
l <- tclVar()
## I don't know if I'm even calling it correctly
cb <- ttkcombobox(p, values = letters[1:4], textvariable = l)
tkpack(cb)
1. How do I know when the value of the combobox has
2009 Sep 28
2
re trieve user input from an tcl/tk interface
Hello everyone,
this is my first post here and I hope I signed up correctly and someone will
take me by the hand and help me out. I am new to R and cannot figure out
what to do here...
... I want to have an User Interface that requests input. I want to save
this input to a variable to use it later on. I was able to do this with a
modalDiaglog (
2010 Nov 19
1
Set colour in tcl variable
Hello all,
using package tcltk this is my problem:
I want to set a colour of a tclVar().
I have a tklabel (fixed in position) which should display two variables
occasionally.
If a constraint is fulfilled, the tklabel should display
correct<-tclVar('correct') in green, otherwise it should display
wrong<-tclVar('wrong') in red!
To display the variables is no
2003 May 06
4
bitmap images in tcltk
Dear R-help list members,
I'm writing a package using tcltk. Thanks to Peter Dalgaard's excellent
work on the tcltk package, almost everything has gone very smoothly. I'm
stymied, however, by the following problem:
I want to incorporate a bitmap image, stored as an xbm file, in a widget.
To take a simple example,
top <- tktoplevel()
tkgrid(tklabel(top,
2005 Jun 04
2
locator() via tcltk
Hello,
I'm trying to write a function using tcltk to interactively modify a plot
and gather locator() data. I've read Peter's articles in Rnews, the help
pages in tcltk, http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/,
plus a post in R-help sometime ago, but haven't found a solution.
The idea goes something like this:
require(tcltk)
testplot <- function() {
getcoords
2020 Jun 07
0
use of the tcltk package crashes R 4.0.1 for Windows
Not happening on Mac, so likely a Windows build issue.
(There's no 4.0.1 CRAN package yet, and no nightly build of 4.0.1 Patched, but the only thing changed in the sources since r78644 is the VERSION file.)
-pd
> On 7 Jun 2020, at 03:13 , Fox, John <jfox at mcmaster.ca> wrote:
>
> Hi,
>
> The following code, from the examples in ?TkWidgets , immediately crashes R
2003 Jan 20
1
curious code mistakes
hi,
know anybody why this happen ?
I''m using winedt , the old code saved in an .R
call syntax error''s. Curious is, when i''m type below
the same code , it works ???
...imho a print type problem, what i''m never before observed and
can''t recognize with my eyes ?
P.S. R.1.6.1 /w2k
thanks for advance
& regards,christian
>>getfile <-
2000 Sep 29
1
Two tcltk questions and Re: tcltk package functionality
Sorry, for my mail from last night contains no subject.
Therefore, I send it again and two tcltk questions are appended.
----------------------------------------------------------------------------
Prasad wrote:
> I wrote a function in R which uses tcltk package .... essentially I wanted
> to give within that function, a widget with 2 radiobuttons to choose
> between plotting Precip
2008 Mar 31
2
tkconfigure throws an error
Thanks everybody for looking at this. I am trying to assign a script to
a button
please help:
############
library(tcltk)
tt<- tktoplevel()
tktitle(tt)<-"the title"
heading<-tklabel(tt,text="Enter date as YYYY-MM-DD")
l1<-tklabel(tt,text="Reporting date")
b1=tkbutton(tt,text="Run")
d.val<-tkentry(tt,width=12)
tkgrid(heading,columnspan=2)
2007 Aug 14
2
Question about unicode characters in tcltk
hello list,
Can someone help me figure out why the following code doesn't work?
I'm trying to but both Greek letters and subscripts into a tcltk menu.
The code creates all the mu's, and the 1 and 2 subscripts, but it
won't create the 0. Is there a certain set of characters that R won't
recognize the unicode for? Or am I input the \u2080 incorrectly?
library(tcltk)
m
2001 Feb 03
1
callback environment for Tk buttons
Hi. I'm running into problems with using R functions as callback
commands for buttons in Tk.
The following Tcl/Tk script creates three buttons. If you press hello
it prints hello world. If you press HALLO it prints HALLO WORLD.
Not exciting, but I need an example...
set tt [toplevel .tt]
foreach i {"hello" "HALLO"} {
pack [button $tt.b$i -text $i
2004 Mar 19
5
loop through files in a dir
Hello
I have data in many files in a directory, how can I
loop through the files in a given dir in-order-to
build a data.frame?
thanks
2008 Mar 19
1
Radio Buttons or similars
Hello companions!!!
I have a function that creates a Radio Buttons, and I need that this
function return the selected value in the Radio Buttons. I would like that,
if somebody know as I could return the value, you say me as do it.
Next, I show the function
function1<-function(){
require(tcltk)
tt <- tktoplevel()
rb1 <- tkradiobutton(tt)
rb2 <- tkradiobutton(tt)
rbValue <-
2007 Mar 30
3
RWiki, tcltk and plot
I think I - almost - got the knack for GUI programming using the
tcltk library. Maybe I will update the RWiki with this:
#
#################################################
#
library(tcltk)
#
# Create some matrix - nothing about tcltk here
#
matrix <- cbind(rnorm(100), rpois(100, lambda=10),
runif(100), rt(100, df=2), rt(100, df=4))
colnames(matrix) <- c("Normal",
2006 Oct 17
2
tcltk crashes with bad color with text widget
Hello
I have been playing with tcl/tk in R 2.4.0 on windows XP and have
managed to crash R by supplying tcl/tk with an incorrect color.
Is this a bug? is there a way for me to test the color to see if it is a
valid tcl/tk color, to avoid this?
tt=tktoplevel()
tklabel(parent=tt, text="hello world", foreground="reed")
Error in structure(.External("dotTclObjv", objv,
2001 Sep 19
2
tcltk: Difficulties creating menus
I am struggling with adding menus to a tcltk application. The following
example (from the O'Reilly book on Perl/Tk) works fine:
#!/usr/bin/perl -w
use Tk;
my $mw = MainWindow->new;
$menub = $mw->Menubutton(-text => "Color")->pack();
foreach (qw/red yellow green blue grey/) {
$menub->radiobutton(-label => $_, -command => \&set_bg,