安装拨浪鼓时出错

时间:2015-07-20 14:44:44

标签: macos install rattle

在底部,它要求“选择:”我应该在那里写什么?

>library("rattle")
Loading required package: RGtk2
R session is headless; GTK+ not initialized.
Rattle: A free graphical interface for data mining with R.
Version 3.5.0 Copyright (c) 2006-2015 Togaware Pty Ltd.
Type 'rattle()' to shake, rattle, and roll your data.
打开拨浪鼓

> rattle()

ce)' failed

(R:1244): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(R:1244): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed

(R:1244): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(R:1244): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed


etc ... 


(R:1244): Gtk-CRITICAL **: gtk_settings_get_for_screen: assertion `GDK_IS_SCREEN (screen)' failed

(R:1244): Gdk-CRITICAL **: gdk_screen_get_display: assertion `GDK_IS_SCREEN (screen)' failed

(R:1244): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion `GDK_IS_DISPLAY (display)' failed

(R:1244): GLib-GObject-CRITICAL **: g_object_get: assertion `G_IS_OBJECT (object)' failed

(R:1244): Gdk-CRITICAL **: gdk_keymap_get_for_display: assertion `GDK_IS_DISPLAY (display)' failed
Selection: 

然后我做了install.packages(“rattle”);拨浪鼓()

它崩溃了。

2 个答案:

答案 0 :(得分:1)

只需安装&打开 XQuartz ,然后再试一次!

答案 1 :(得分:0)

我试图通过ssh打开远程服务器上的GUI应用程序,但收到上述错误。正如@YogiEHunt所建议的那样,我已经安装了XQuartz,但是要注意的是,我只能使用-X选项,而仅使用ssh到远程服务器,然后GUI应用程序才能使用XQuartz打开,而没有-X选项,则无法打开GUI

ssh -X user@10.0.0.1
user$ application-command

安装XQuartz之后,您必须重新启动系统。

使用XQuartz打开的应用程序太慢了。