加载ggplot2(色彩空间,实际上)打开x11 [英] loading ggplot2 (colorspace, actually) opens up x11
问题描述
ggplot2
,X11都会跳转到操作(占用资源)。 library(ggplot2)
做和繁荣 - X11
事情是,我不想使用X11,也不希望它被打开 - 我想使用Quartz和内置图形在RStudio中。
每当我关闭X11,我的R会话都会继续。
我的设置:
- OS X Yosemite 10.10.2
- R 3.1.2
- 平台:x86_64-apple-darwin13.4.0(64位)
- ggplot 1.0.0
- XQuartz 2.7.7 xorg-server 1.15.2)
- OS X最近(昨天?)将命令行工具更新为6.2
出现此问题:使用ST3 REPL包在RStudio中使用
$ b
-
- R控制台
我是如何搞砸的,以及如何停止这疯狂?
更新:结果(请参阅评论),包 colorpace 在版本1.2-5中出错,而不是ggplot2。
更新:问题似乎可以解决正如在评论和 com / hadley / ggplot2 / issues / 1064rel =noreferrer> github issue 在ggplot2页面中,这是由包 colorspace
。如果您安装了 devtools
软件包,您可以轻松完成:
库(devtools)
install_version(colorspace,1.2-4)
Whenever I so much as load ggplot2
, X11 jumps into action (hogging resources).
library(ggplot2)
Is what I do, and boom – X11
The thing is, I don't want to use X11, nor do I want it to be open – I want to use Quartz and the build-in graphics in RStudio.
Whenever I close X11, so goes my R session.
My setup:
- OS X Yosemite 10.10.2
- R 3.1.2
- Platform: x86_64-apple-darwin13.4.0 (64-bit)
- ggplot 1.0.0
- XQuartz 2.7.7 (xorg-server 1.15.2)
- OS X also recently (yesterday?) updated the Command Line Tools to 6.2
This problem occurs:
- In RStudio
- using a ST3 REPL package
- the R console
How did I mess this up, and how I can I stop this madness?
Update: Turns out (see comments), the package colorspace in version 1.2-5 is at fault, not ggplot2.
Update: The problem seems to be solved as of colorspace version 1.2-6.
As mentioned in the comments and the github issue in the ggplot2 page, this is cause by the package colorspace
version "1.2-5". You can wait to a new version of the package with a fix. Or, a temporary solution is to install a previous version of colorspace
. If you have the devtools
package installed you can easily do:
library(devtools)
install_version("colorspace", "1.2-4")
这篇关于加载ggplot2(色彩空间,实际上)打开x11的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!