Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rstudio specific issue with the tcltk package

I am trying to compile an interactive code that prompts for user input. I used the tcltk package for various dialog boxes and everything seemed to work fine, until it stopped working today. It should be noted that a) I did not change anything in terms of configuration and b) it only stopped working in RStudio but it still work in R.

Let's say I use the following code for example:

library(tcltk)
a <-tkmessageBox(title = "Remove stuff from dataset",
                message = "Would you like to remove stuff from dataset?",
                icon = "info", type = "yesno")

Originally a dialog box would open with a yes no question, however since today RStudio just gets stuck and I need to force close it.
Tried restarting my computer but it didn't help.

I am running RStudio ver 1.0.143 on win 10 with R ver 3.4 64bit

Would appreciate any help because I am really at a lose as to why it would suddenly stop working.

like image 768
Ido Hatam Avatar asked Dec 16 '25 12:12

Ido Hatam


1 Answers

Testing locally, it appears like this is indeed some kind of bad interaction between RStudio and R 3.4.0 on Windows. That is, for me, your code:

  • Works fine with RStudio v1.0.134 + R 3.3.3,
  • Hangs with RStudio v1.0.134 + R 3.4.0.

I'll file an issue on the RStudio side and hopefully they'll be able to figure out what's going on.

like image 147
Kevin Ushey Avatar answered Dec 19 '25 04:12

Kevin Ushey



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!