2015-07-20 51 views
1

在底部它要求「選擇:」我應該在那裏寫什麼?安裝撥浪鼓時出錯

>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( 「咣」);撥浪鼓()

它崩潰。

+0

正如@snAtchnAren所說,你可以打開'X11'並使用終端來初始化'GTK'。我在這裏寫了一個關於完整安裝的簡要說明:https://gist.github.com/zhiyzuo/a489ffdcc5da87f28f8589a55aa206dd – Zhiya

回答

0

只需安裝&打開XQuartz然後再試一次!