[Rd] Link R with Tcl 8.6 on Windows
adrian at waddell.ch
Mon Sep 28 19:36:14 CEST 2015
I am working on an R package intended for CRAN that requires Tcl version 8.6 because of the TclOO tcl extension and the -angle option for canvas text items.
R for Windows currently still ships with Tcl 8.5. Does anyone have experience with linking R under Windows to a Tcl interpreter of version 8.6?
When I link R 3.2.2 (installed from the binary on Windows 8) to a custom Tcl installation of version 8.6 (e.g. from ActiveState for both 32bit or 64bit) using the MY_TCLTK environment variable, then loading the tcltk package will result with a tk85.dll not found error. This problem can be “fixed” by copying and renaming the tk86.dll and the tcl86.dll files in the bin folder of the activetcl installation to tk85.dll and tcl85.dll.
However, this setup does not work well for me; sometimes, when creating a number of involved toplevel windows at once, some of them are not created properly and are left completely unresponsive, see the attached image. I have not managed to create a small contained example so far. But I can share my code, if necessary.
Is there a reason that under Windows R looks for the tk85.dll in particular, effectively forcing the Tcl version to 8.5? Also, does anyone know a remedy to this gui error?
R version 3.2.2 (2015-08-14)
Platform: i386-w64-mingw32/i386 (32-bit)
Running under: Windows 8 x64 (build 9200)
 LC_COLLATE=English_Canada.1252 LC_CTYPE=English_Canada.1252
 LC_MONETARY=English_Canada.1252 LC_NUMERIC=C
attached base packages:
 tools tcltk stats graphics grDevices utils datasets
 methods base
other attached packages:
More information about the R-devel