安装 Bioconductor highthroughputassays 工作流程会出现 rgl 错误并且无法加载

Installing Bioconductor highthroughputassays workflow gives rgl errors and fail to load

当我尝试安装 bioconductor 工作流程时 'highthroughputassays' 如下(和 described here):

> source("http://bioconductor.org/workflows.R")
> workflowInstall("highthroughputassays")

安装了很多依赖包,但是在安装结束前报如下错误:

No man pages found in package  ‘highthroughputassays’ 
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Users/johansenkh/Library/R/3.3/library/rgl/libs/rgl.so':
dlopen(/Users/johansenkh/Library/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: /Users/johansenkh/Library/R/3.3/library/rgl/libs/rgl.so
Reason: image not found
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/Users/johansenkh/Library/R/3.3/library/highthroughputassays’
Warning in install.packages :
installation of package ‘highthroughputassays’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/hb/sc3x6vtj0ys009qnyplbp2_h1g5hgm/T/RtmpDkWkRH/downloaded_packages’

由于这些错误,工作流未加载;

library(flowStats)

按照上述方法安装软件包后出现类似错误。

我已经在 3 台不同的 Mac 电脑上试过了(都装有最新的 OS X,但其中一台有 3.3.1 版本的 R(最新版本是 3.3.2 ))

尝试 library(rgl) 时出现以下错误:

Error : .onLoad failed in loadNamespace() for 'rgl', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Users/johansenkh/Library/R/3.3/library/rgl/libs/rgl.so':
dlopen(/Users/johansenkh/Library/R/3.3/library/rgl/libs/rgl.so, 6): Library not loaded: /opt/X11/lib/libGLU.1.dylib
Referenced from: /Users/johansenkh/Library/R/3.3/library/rgl/libs/rgl.so
Reason: image not found
Error: package or namespace load failed for ‘rgl’

我解决问题如下:

问题在于加载 'rgl'。

通过安装 XQUARTZ (www.XQUARTZ.com),然后重新启动 OS X(注销并登录),rgl-package 成功了。此后,如上所示安装工作流。