From pd@|gd @end|ng |rom gm@||@com  Sun Jun  7 08:27:06 2020
From: pd@|gd @end|ng |rom gm@||@com (peter dalgaard)
Date: Sun, 7 Jun 2020 08:27:06 +0200
Subject: [Rd] use of the tcltk package crashes R 4.0.1 for Windows
In-Reply-To: <ACD1644AA6C67E4FBD0C350625508EC88CF55DA3@FHSDB2D11-2.csu.mcmaster.ca>
References: <ACD1644AA6C67E4FBD0C350625508EC88CF55DA3@FHSDB2D11-2.csu.mcmaster.ca>
Message-ID: <48ABB4AC-8823-4FB3-B730-9E0F2A5EE5DA@gmail.com>

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 4.0.1 for Windows:
> 
> --------------------- snip --------------------
> library("tcltk")
> tt <- tktoplevel()
> label.widget <- tklabel(tt, text = "Hello, World!")
> button.widget <- tkbutton(tt, text = "Push", 
> 	 command = function()cat("OW!\n"))
> tkpack(label.widget, button.widget) # geometry manager
> --------------------- snip --------------------
> 
> Session info (prior to the crash):
> 
> --------------------- snip --------------------
>> sessionInfo()
> R version 4.0.1 (2020-06-06)
> Platform: x86_64-w64-mingw32/x64 (64-bit)
> Running under: Windows 10 x64 (build 18363)
> 
> Matrix products: default
> 
> locale:
> [1] LC_COLLATE=English_United States.1252 
> [2] LC_CTYPE=English_United States.1252   
> [3] LC_MONETARY=English_United States.1252
> [4] LC_NUMERIC=C                          
> [5] LC_TIME=English_United States.1252    
> 
> attached base packages:
> [1] tcltk     stats     graphics  grDevices utils     datasets  methods  
> [8] base     
> 
> loaded via a namespace (and not attached):
> [1] compiler_4.0.1 tools_4.0.1   
> --------------------- snip --------------------
> 
> I observe this behaviour both in the Rgui and when I run R in a terminal. I think the problem is general to the use of the tcltk package.
> 
> Best,
> John
> 
> -----------------------------------------------------------------
> John Fox
> Professor Emeritus
> McMaster University
> Hamilton, Ontario, Canada
> Web: https://socialsciences.mcmaster.ca/jfox/
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd.mes at cbs.dk  Priv: PDalgd at gmail.com



[Rd] use of the tcltk package crashes R 4.0.1 for Windows
peter dalgaard