简体   繁体   English

R不会加载已安装的软件包,理由是错误:必须先卸载其他软件包(并且不能卸载它们)

[英]R won't load installed package, citing errors that other packages must be unloaded first (and that they can't be unloaded)

I deeply don't understand the problem I am facing here and likely am not posting enough information, please be patient as I update/respond to comments... Thank you, 我完全不了解我在这里面临的问题,可能没有发布足够的信息,请耐心等待我更新/回复评论...谢谢,

I've recently tried installing the package "metagenomeSeq" (URL: http://www.cbcb.umd.edu/software/metagenomeSeq ). 我最近尝试安装软件包“ metagenomeSeq”(URL: http : //www.cbcb.umd.edu/software/metagenomeSeq )。 This package uses its own installation routines, using the R script biocLite to install: 该软件包使用自己的安装例程,并使用R脚本biocLite进行安装:

source("http://bioconductor.org/biocLite.R")
biocLite("metagenomeSeq")

Installation is apparently successful: 安装显然很成功:

> biocLite("metagenomeSeq")
BioC_mirror: https://bioconductor.org
Using Bioconductor 3.2 (BiocInstaller 1.20.1), R 3.2.5 (2016-04-14).
Installing package(s) ‘metagenomeSeq’
...
[snippped]
...
* installing *source* package ‘metagenomeSeq’ ...
** R
** data
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (metagenomeSeq)

However, attempting to load the packages yields the following: 但是,尝试加载软件包会产生以下结果:

> library("metagenomeSeq")
Loading required package: Biobase
Error in unloadNamespace(package) : 
  namespace ‘Biobase’ is imported by ‘DESeq2’, ‘genefilter’, ‘multtest’, ‘annotate’, ‘geneplotter’, ‘AnnotationDbi’ so cannot be unloaded
Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc,  : 
  Package ‘Biobase’ version 2.26.0 cannot be unloaded

I am using R v3.2.5 and Rstudio v099.491. 我正在使用R v3.2.5和Rstudio v099.491。 Operating system: Ubuntu 14.04. 操作系统:Ubuntu 14.04。 Packages are: 套餐包括:

library("scales")
library("ape")
library("ggplot2")
library("RColorBrewer")
library("igraph")
library("vegan")
library("gridExtra")
library("cowplot")
library("RAM")
library("plyr")
library("stringr")
library("gridExtra")
library("ggdendro")
library("reshape2")
library("xtable")
library("knitr")
library("phyloseq")
library("indicspecies")

Edit 1: 编辑1:

The package loads when I open up a fresh instance of R studio without loading any other packages first. 当我打开R Studio的新实例而不首先加载任何其他软件包时,将加载该软件包。 Is it possible for an R's packages dependencies to have conflicts with other packages that require their dependencies to be unloaded? R的软件包依赖关系是否可能与需要卸载其依赖关系的其他软件包冲突? I've never come across this before. 我以前从未遇到过。

Edit 2: Included packages I was using. 编辑2:我使用的包含的包。

懒惰修复:删除库“重塑”和“ RAM”( RAM取决于重塑 )减轻了我的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM