安装Bioconductor highthroughputassays工作流会导致rgl错误并无法加载

时间:2017-02-10 21:28:54

标签: r runtime-error bioconductor

当我尝试按如下方式安装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,但其中一台有R的3.3.1版本(最新版本是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’

1 个答案:

答案 0 :(得分:0)

我解决了以下问题:

问题在于加载' rgl'。

通过安装XQUARTZ(www.XQUARTZ.com)然后重新启动OS X(注销并登录),rgl-package工作正常。然后按照上面的说明安装工作流程。