首页 > 解决方案 > 包 'ggbiplot' 不可用(对于 R 版本 3.5.3)?

问题描述

install.packages 中的警告:

包 'ggbiplot' 不可用(对于 R 版本 3.5.3)

尝试了我发现安装此软件包的所有选项。这个版本的 R 不能使用它吗?我还有其他方法可以在我的 RStudio 上使用 ggbiplot 吗?

标签: rggbiplot

解决方案


根据Installation下的存储库的README.md,您需要

library(devtools)
install_github("vqv/ggbiplot")

编辑:根据您的评论,我现在在一个新的 Docker 容器中运行它r-base。它工作顺利:

> library(devtools)                         
> install_github("vqv/ggbiplot")                                              
Downloading GitHub repo vqv/ggbiplot@master  
[...stuff deleted here for brevity...]
* installing *source* package ‘ggbiplot’ ...
** R
** data
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
* DONE (ggbiplot)
>

所以它就像我声称的那样工作。在这两者之间,它需要另一个小转移,因为这个包显然不是tinyverse的一部分,也需要所有这些:

Installing 10 packages: colorspace, ggplot2, gtable, labeling, 
munsell, plyr, RColorBrewer, reshape2, scales, viridisLite

尽管如此,最初的建议仍然如愿。


推荐阅读