在R中设置GUI

时间:2017-08-29 08:02:41

标签: r user-interface

尝试在R中创建一些GUI 我创建了一个窗口,它就消失了。 我在这里缺少什么?

library(tcltk)

tt <- tktoplevel()                  <br>
x <- tkbutton(tt, text = "Text")    <br>
tkpack(x)

1 个答案:

答案 0 :(得分:0)

您使用什么系统?它适用于使用R 3.4.1

的macOS

enter image description here

这很奇怪。它也可以在命令行中正常工作:

enter image description here

我假设您已安装并配置了XQuartz(https://www.xquartz.org)。

相关问题