我在 R 中创建了一个 GUI 应用程序,它在我的 Linux 机器上运行良好(带有RGtk2
),但是当我尝试在公司的 Windows PC 上运行它时,它惨遭失败。
我用这段代码创建了我的 GUI 容器
# Tabbed Window with two tabs
# each of them with separate panes to manage horizontal vs. vertical
win <- gwindow( "My Business App" )
nb <- gnotebook( cont=win )
front <- gpanedgroup( cont = nb, # Produce the instruction
label = "Frontend", horizontal = FALSE )
front_check <- ggroup( cont = front )
front_text <- ggroup( cont = front, horizontal = FALSE )
back <- gpanedgroup( cont = nb,
label = "Backend" ) # Maintain the underlying data
back_slct <- ggroup( cont = back )
back_edit <- ggroup( cont = back, horizontal = FALSE )
在 Windows 上,我只看到最后创建的容器 ( back_edit
)。
我在两台机器上都运行 R 2.15.2。sessionInfo()
在 Windows 机器上的输出:
> sessionInfo()
R version 2.15.2 (2012-10-26)
Platform: i386-w64-mingw32/i386 (32-bit)
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
other attached packages:
[1] gWidgetstcltk_0.0-53 digest_0.6.0 gWidgets_0.0-52
我是否遗漏了什么,或者gnotebook()
根本无法在 Windows 上运行?