当我尝试安装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’发布于 2017-02-15 23:03:58
我解决这个问题的方法如下:
问题出在加载“rgl”时。
通过安装XQUARTZ (www.XQUARTZ.com),然后重启OS (注销和登录),rgl-package工作。然后,如上所述安装工作流。
https://stackoverflow.com/questions/42168939
复制相似问题