简体   繁体   中英

RStudio1.2.1335 quits when calling rattle() ver 2.5.0 due to RGtk2 2.20.36 using Mojave

A fatal error occurs when I installed RGtk2 2.20.36 on RStudio version 1.2.1335. I followed the steps recommended on Installing Rattle on macOS using HomeBrew.

ProductName:    Mac OS X
ProductVersion: 10.14.5
BuildVersion:   18F132

Traceback:
 1: .RGtkCall("S_gtk_widget_show", object, PACKAGE = "RGtk2")
 2: method(obj, ...)
 3: crv$rattleGUI$getObject("rattle_window")$show()
 4: rattle()

Try the following (recommend by Yung-jin Lee) directly on the terminal:

export PATH=/opt/local/bin:/opt/local/sbin:$PATH

sudo port selfupdate

sudo port install pkgconfig

sudo port install gtk2 +x11

R CMD INSTALL RGtk2_x.xx.xx.tar.gz

R CMD INSTALL cairoDevice_x.xx.tar.gz

It worked for me.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM