tcltk 包的 Rstudio 特定问题 [英] Rstudio specific issue with the tcltk package
问题描述
我正在尝试编译提示用户输入的交互式代码.我将 tcltk 包用于各种对话框,一切似乎都运行良好,直到今天它停止工作.应该注意的是,a) 我没有在配置方面做任何改变,b) 它只是在 RStudio 中停止工作,但它仍然可以在 R 中工作.
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")
最初会打开一个对话框,并显示是"或否"问题,但是由于今天 RStudio 卡住了,我需要强制关闭它.
尝试重新启动我的计算机,但没有帮助.
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.
我正在使用 R ver 3.4 64bit 在 win 10 上运行 RStudio ver 1.0.143
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.
推荐答案
在本地测试,看起来这确实是 Windows 上 RStudio 和 R 3.4.0 之间的某种不良交互.也就是说,对我来说,你的代码:
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:
- 适用于 RStudio v1.0.134 + R 3.3.3,
- 支持 RStudio v1.0.134 + R 3.4.0.
我会在 RStudio 方面提交问题,希望他们能够弄清楚发生了什么.
I'll file an issue on the RStudio side and hopefully they'll be able to figure out what's going on.
这篇关于tcltk 包的 Rstudio 特定问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!