r - 无法在 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 包,因此该解决方案似乎在这里不可用。
解决方案
在尝试通过多种方式下载软件包并尝试从本地文件安装后,我仍然没有运气。
由于我不知道的原因,我仍然不得不使用我的防病毒软件减少文件保护。R 已经在允许修改我的文件的程序列表中,但无论出于何种原因,它仍然被阻止,并且仅用于安装包GO.db
- 尽管我想我将来会发现更多这样的案例.
推荐阅读
- flutter - 我如何在颤动中通过 NFC 读取信用卡并使手机充当其他手机的 NFC 卡
- ffmpeg - FFMpeg 调整任何视频的大小以适应 1080x1920 垂直,而不进行裁剪,而是通过缩小和添加模糊边框?
- django-rest-framework - Django REST Framework 元数据不返回 RegexField 的正则表达式
- javascript - 如何在 Slack 应用程序和 Web 应用程序身份验证之间切换
- jquery - 使用 Webpack 导入 JQuery 插件
- r - 遍历列以分析不同的因变量
- javascript - ag-Grid React (18):如何限制/抑制单元格复制?
- go - 未导入文件的 Webpack 自动重新加载
- regex - 正则表达式使用 grep 在 js 文件中查找空函数
- docker - 使用 nginx 入口控制器公开 TCP 流量