希望有人可以帮助我.. 我正在尝试按照此处的说明安装 mzmatch.R 代谢组学包:http: //mzmatch.sourceforge.net/tutorial.mzmatch.r.php
我对 R 完全陌生,所以这是我第一次做这种事情。首先,我下载了最新版本的 R 并将其安装在 Mac OSX 10.7 上。这是我运行的 R 版本:R 2.15.0 GUI 1.51 Leopard build 64-bit (6148)
然后我启动 R64.app 并键入以下命令(如上面链接中的说明中所指定)来安装包及其所有依赖项。
> source("http://bioconductor.org/biocLite.R")
> biocLite(c("faahKO", "xcms", "multtest"))
> install.packages(c("rJava","XML","snow","caTools","bitops","ptw"))
> source ("http://puma.ibls.gla.ac.uk/mzmatch.R/install_mzmatch.R")
最后一步将始终失败并显示以下消息:
trying URL 'http://puma.ibls.gla.ac.uk/mzmatch.R/mzmatch.R.tar.gz'
Content type 'application/x-gzip' length 104535 bytes (102 Kb)
opened URL
==================================================
downloaded 102 Kb
* installing *source* package ‘mzmatch.R’ ...
** R
** preparing package for lazy loading
Error : .onLoad failed in loadNamespace() for 'mzR', details:
call: value[[3L]](cond)
error: failed to load module Ramp from package mzR
could not find function "errorOccured"
Error : package ‘mzR’ could not be loaded
ERROR: lazy loading failed for package ‘mzmatch.R’
* removing ‘/Library/Frameworks/R.framework/Versions/2.15/Resources/library/mzmatch.R’
Warning message:
In install.packages(pkgs = "mzmatch.R.tar.gz", repos = NULL, type = "source") :
installation of package ‘mzmatch.R.tar.gz’ had non-zero exit status
我认为这是因为无法加载库“mzR”,所以我尝试了:
> biocLite("mzR")
> library("mzR")
果然,出现了同样的错误:
Loading required package: Rcpp
Error : .onLoad failed in loadNamespace() for 'mzR', details:
call: value[[3L]](cond)
error: failed to load module Ramp from package mzR
could not find function "errorOccured"
Error: package/namespace load failed for ‘mzR’
我现在很迷茫,完全不知道该怎么办。谢谢阅读 !