Codelink包没有安装

时间:2015-04-18 10:46:15

标签: r package

我尝试按

安装codelink个包
source("http://bioconductor.org/biocLite.R")
biocLite("codelink")

一旦完成,然后尝试library(codelink)使用它,就会在R version 3.1.3 RC (2015-03-06 r67947)

上出错

Error in library(codelink) : there is no package called ‘codelink’不知道出了什么问题

已更新:一些警告消息

Warning messages:
1: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) :
  installation of package ‘XML’ had non-zero exit status
2: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) :
  installation of package ‘annotate’ had non-zero exit status
3: In install.packages(pkgs = pkgs, lib = lib, repos = repos, ...) :
  installation of package ‘codelink’ had non-zero exit status

1 个答案:

答案 0 :(得分:0)

实际上codelink需要我的linux版本中缺少的依赖包libxml2-dev。因此,如果是这种情况,我们需要从命令行运行sudo apt-get install libxml2-dev来安装依赖项。完成此操作后,我们可以安装codelink软件包,该软件包可以顺利安装。