【发布时间】:2019-08-13 08:47:54
【问题描述】:
我快速浏览了其他帖子,但找不到具有相同错误的帖子,即使有些似乎是一些常见的错误消息,所以如果我确实错过了之前的帖子,我们深表歉意。
我正在尝试安装 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 installation bioconductor