【发布时间】:2021-04-11 16:05:24
【问题描述】:
我在从 GitHub 安装以下 R package 时遇到问题。我已经安装了 devtools 并尝试运行:
install_github("lujunyan1118/DrugScreenExplorer")
但我得到的只是以下错误;
Downloading GitHub repo lujunyan1118/DrugScreenExplorer@HEAD
√ checking for file 'C:\Users\marce\AppData\Local\Temp\RtmpesyKBP\remotes6bf041cb1def\lujunyan1118-DrugScreenExplorer-7c98599/DESCRIPTION' ...
- preparing 'DrugScreenExplorer': (663ms)
√ checking DESCRIPTION meta-information ...
- checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
NB: this package now depends on R (>= 3.5.0)
WARNING: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R. File(s) containing such objects: 'DrugScreenExplorer/shiny/shinyData.RData' WARNING: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R. File(s) containing such objects: 'DrugScreenExplorer/vignettes/src/shiny/shinyData.RData'
- building 'DrugScreenExplorer_0.1.0.tar.gz'
Installing package into ‘C:/Users/marce/OneDrive/Back-Up/Dokumente/R/win-library/4.0’
(as ‘lib’ is unspecified)
* installing *source* package 'DrugScreenExplorer' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Fehler in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
there is no package called 'Rtsne'
Ruft auf: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Ausführung angehalten
ERROR: lazy loading failed for package 'DrugScreenExplorer'
* removing 'C:/Users/marce/OneDrive/Back-Up/Dokumente/R/win-library/4.0/DrugScreenExplorer'
> Fehler: Failed to install 'DrugScreenExplorer' from GitHub:
> (konvertiert von Warnung) installation of package
> ‘C:/Users/marce/AppData/Local/Temp/RtmpesyKBP/file6bf050512a61/DrugScreenExplorer_0.1.0.tar.gz’
> had non-zero exit status
已安装 Rtools(似乎需要从 GitHub 安装软件包)并安装任意其他软件包(install_github("dill/beyonce"))
也尝试通过 RStudio 直接安装 zip 失败。
也许我正在监督一些事情。任何帮助将不胜感激。 谢谢!
【问题讨论】:
-
从错误消息看来,这个包依赖于似乎没有安装的
Rtsne包。尝试先用install.packages("Rtsne")安装它 -
如果您在此处找不到答案,可以通过Bioinformatics StackExchange 提出这个问题?
-
我用
remotes::install_github("lujunyan1118/DrugScreenExplorer")安装了它。不过,我需要先从 CRAN 安装几个依赖项。
标签: r github installation package