当我打开r时,在输入任何命令之前,控制台立即显示一个错误,表明未安装策划>策划的metagenogenomicdata
软件包。
R version 4.2.0 (2022-04-22 ucrt) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Error in library("curatedMetagenomicData") :
there is no package called ‘curatedMetagenomicData’
策划质原核达塔塔
是我几年前使用的生物处理程序软件包,我必须在某个时候删除它。当我尝试重新安装它时,安装失败,似乎是因为它尚未安装?
> BiocManager::install("curatedMetagenomicData")
'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details
replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.15 (BiocManager 1.30.18), R 4.2.0 (2022-04-22 ucrt)
Installing package(s) 'curatedMetagenomicData'
installing the source package ‘curatedMetagenomicData’
trying URL 'https://bioconductor.org/packages/3.15/data/experiment/src/contrib/curatedMetagenomicData_3.4.2.tar.gz'
Content type 'application/x-gzip' length 1855762 bytes (1.8 MB)
downloaded 1.8 MB
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
The downloaded source packages are in
‘C:\Users\jpennycook\AppData\Local\Temp\RtmpqcBkUu\downloaded_packages’
Warning message:
In install.packages(...) :
installation of package ‘curatedMetagenomicData’ had non-zero exit status
这似乎在意外的地方引起了问题,例如当我尝试编织R Markdown文档时(完全与>> 策划的metagenogenomicdata
),这会在Rstudio的“渲染”窗口中失败。
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
我尝试尽可能彻底地删除R和Rstudio安装,然后重新安装,但问题仍然存在。我不明白什么提示R可以检查此软件包是否已安装。谁能帮我理解这一点?我目前不需要使用有关包裹,但是错误正在变得痛苦。
编辑:
当我尝试从源中安装任何软件包时(无论是 还是另一个),例如 dbplyr
)。在每种情况下,显然尚未安装策划的Metagenogenomicdata。
> install.packages("C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/curatedMetagenomicData_3.4.2.tar.gz",
+ repos = NULL, type = "source")
Installing package into ‘C:/Users/jpennycook/Documents/myRlibs’
(as ‘lib’ is unspecified)
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
Warning in install.packages :
installation of package ‘C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/curatedMetagenomicData_3.4.2.tar.gz’ had non-zero exit status
> install.packages("C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/dbplyr_2.2.0.tar.gz",
+ repos = NULL, type = "source")
Installing package into ‘C:/Users/jpennycook/Documents/myRlibs’
(as ‘lib’ is unspecified)
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
Warning in install.packages :
installation of package ‘C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/dbplyr_2.2.0.tar.gz’ had non-zero exit status
When I open R, before I type in any commands, the console immediately shows an error indicating that the curatedMetagenomicData
package is not installed.
R version 4.2.0 (2022-04-22 ucrt) -- "Vigorous Calisthenics"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
Error in library("curatedMetagenomicData") :
there is no package called ‘curatedMetagenomicData’
curatedMetagenomicData
is a Bioconductor package I used a few years ago and which I must have removed at some point. When I try to reinstall it, the installation fails, seemingly because it isn't installed already?
> BiocManager::install("curatedMetagenomicData")
'getOption("repos")' replaces Bioconductor standard repositories, see '?repositories' for details
replacement repositories:
CRAN: https://cran.rstudio.com/
Bioconductor version 3.15 (BiocManager 1.30.18), R 4.2.0 (2022-04-22 ucrt)
Installing package(s) 'curatedMetagenomicData'
installing the source package ‘curatedMetagenomicData’
trying URL 'https://bioconductor.org/packages/3.15/data/experiment/src/contrib/curatedMetagenomicData_3.4.2.tar.gz'
Content type 'application/x-gzip' length 1855762 bytes (1.8 MB)
downloaded 1.8 MB
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
The downloaded source packages are in
‘C:\Users\jpennycook\AppData\Local\Temp\RtmpqcBkUu\downloaded_packages’
Warning message:
In install.packages(...) :
installation of package ‘curatedMetagenomicData’ had non-zero exit status
This seems to cause problems in unexpected places, such as when I try to knit an R Markdown document (completely unrelated to curatedMetagenomicData
), which fails with the following message in the 'Render' window of RStudio.
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
I've tried removing my R and RStudio installations as thoroughly as I can, then re-installing, but the issue persists. I can't understand what is prompting R to check if this package is installed. Can anyone help me understand this? I don't currently need to use the package in question, but the errors are becoming a pain.
EDIT:
This issue is also cropping up when I try to install any package from source (whether it's curatedMetagenomicData
or another, such as dbplyr
). In each case, the problem is apparently that curatedMetagenomicData is not already installed.
> install.packages("C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/curatedMetagenomicData_3.4.2.tar.gz",
+ repos = NULL, type = "source")
Installing package into ‘C:/Users/jpennycook/Documents/myRlibs’
(as ‘lib’ is unspecified)
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
Warning in install.packages :
installation of package ‘C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/curatedMetagenomicData_3.4.2.tar.gz’ had non-zero exit status
> install.packages("C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/dbplyr_2.2.0.tar.gz",
+ repos = NULL, type = "source")
Installing package into ‘C:/Users/jpennycook/Documents/myRlibs’
(as ‘lib’ is unspecified)
Error in library("curatedMetagenomicData") :
there is no package called 'curatedMetagenomicData'
Execution halted
Warning in install.packages :
installation of package ‘C:/Users/jpennycook/AppData/Local/Temp/RtmpqcBkUu/downloaded_packages/dbplyr_2.2.0.tar.gz’ had non-zero exit status
发布评论
评论(1)
根据评论中的回答,我将向答案提升我的评论。
此问题的两个可能原因是,
.rprofile
文件,试图加载.rdata
文件,自动加载;它中有一个对象,它将触发此软件包的加载注意,在任何一种情况下,其名称以
。
开头的文件通常是默认情况下的。仔细搜索它们file.exists(“。rdata”)
和file.exists(“〜/.rprofile”)
会告诉您这些文件是否存在;您可以通过临时移动/重命名每个问题来诊断问题。Based on responses in the comments, I'll promote my comment to an answer.
Two possible causes of this problem are
.Rprofile
file in your home directory that is trying to load packages.RData
file in your current working directory that is being auto-loaded; it has an object in it that will trigger the loading of this packageNote that in either case files whose names start with a
.
are usually invisible by default in file managers/file listings, so you may have to search for them carefullyfile.exists(".RData")
andfile.exists("~/.Rprofile")
will tell you whether these files exist; you could diagnose the problem by moving/renaming each one temporarily.