首页 > 解决方案 > 无法在 BiocManager 中安装 GO.db

问题描述

我已经快速浏览了其他帖子,但找不到具有相同错误的帖子,即使有些似乎是一些常见的错误消息,所以如果我错过了之前的帖子,我深表歉意。

我正在尝试安装 BioConductor 包“GO.db”,但不断收到错误消息:

> BiocManager::install("GO.db") Bioconductor version 3.8 (BiocManager
> 1.30.4), R 3.5.2 (2018-12-20) Installing package(s) 'GO.db' installing the source package ‘GO.db’
> 
> trying URL
> 'https://bioconductor.org/packages/3.8/data/annotation/src/contrib/GO.db_3.7.0.tar.gz'
> Content type 'application/x-gzip' length 31820876 bytes (30.3 MB)
> downloaded 30.3 MB
> 
> * installing *source* package 'GO.db' ... Warning in file.copy(f, instdir, TRUE) :   problem copying .\NAMESPACE to
> C:\Users\Name\Documents\R\win-library\3.5\GO.db\NAMESPACE: Permission
> denied Warning in file(file, if (append) "a" else "w") :   cannot open
> file 'C:/Users/Name/Documents/R/win-library/3.5/GO.db/DESCRIPTION':
> Permission denied Error in file(file, if (append) "a" else "w") :   
> cannot open the connection ERROR: installing package DESCRIPTION
> failed for package 'GO.db'
> * removing 'C:/Users/Name/Documents/R/win-library/3.5/GO.db' In R CMD INSTALL
> 
> The downloaded source packages are in
>         ‘C:\Users\Name\AppData\Local\Temp\RtmpeYicUm\downloaded_packages’
> installation path not writeable, unable to update packages: class,
> codetools,   Matrix Update old packages: 'assertthat', 'mgcv'

我试过重新安装 BiocManager,我一直在删除我被告知的目录。我什至尝试过以管理员身份运行 R。但是所有这些尝试都会获得相同的错误消息。我已经看到了使用R CMD INSTALL一些关于锁定的命令的建议,但由于这是一个 BioConductor 包,因此该解决方案似乎在这里不可用。

标签: rinstallationbioconductor

解决方案


在尝试通过多种方式下载软件包并尝试从本地文件安装后,我仍然没有运气。

由于我不知道的原因,我仍然不得不使用我的防病毒软件减少文件保护。R 已经在允许修改我的文件的程序列表中,但无论出于何种原因,它仍然被阻止,并且仅用于安装包GO.db- 尽管我想我将来会发现更多这样的案例.


推荐阅读