首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >安装ggpubr;R Studio版本4.1.3的问题

安装ggpubr;R Studio版本4.1.3的问题
EN

Stack Overflow用户
提问于 2022-04-01 15:50:57
回答 1查看 760关注 0票数 0

我对r很陌生,我正努力把ggpubr拉进图书馆。

我的代码就是这样开始的。我已经成功地安装了“tidyverse”:

代码语言:javascript
运行
复制
install.packages('ggpubr', lib = 'C:/CustomR')

这将返回:

代码语言:javascript
运行
复制
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:

https://cran.rstudio.com/bin/windows/Rtools/
also installing the dependencies ‘pkgload’, ‘praise’, ‘waldo’, ‘testthat’, ‘numDeriv’, ‘SparseM’, ‘MatrixModels’, ‘sp’, ‘minqa’, ‘nloptr’, ‘RcppEigen’, ‘carData’, ‘abind’, ‘pbkrtest’, ‘quantreg’, ‘maptools’, ‘lme4’, ‘corrplot’, ‘car’, ‘ggrepel’, ‘ggsci’, ‘cowplot’, ‘ggsignif’, ‘gridExtra’, ‘polynom’, ‘rstatix’

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/pkgload_1.2.4.zip'
Content type 'application/zip' length 155868 bytes (152 KB)
downloaded 152 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/praise_1.0.0.zip'
Content type 'application/zip' length 19837 bytes (19 KB)
downloaded 19 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/waldo_0.4.0.zip'
Content type 'application/zip' length 102183 bytes (99 KB)
downloaded 99 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/testthat_3.1.3.zip'
Content type 'application/zip' length 2558147 bytes (2.4 MB)
downloaded 2.4 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/numDeriv_2016.8-1.1.zip'
Content type 'application/zip' length 116205 bytes (113 KB)
downloaded 113 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/SparseM_1.81.zip'
Content type 'application/zip' length 1066525 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/MatrixModels_0.5-0.zip'
Content type 'application/zip' length 429091 bytes (419 KB)
downloaded 419 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/sp_1.4-6.zip'
Content type 'application/zip' length 2200540 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/minqa_1.2.4.zip'
Content type 'application/zip' length 855878 bytes (835 KB)
downloaded 835 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/nloptr_2.0.0.zip'
Content type 'application/zip' length 1749120 bytes (1.7 MB)
downloaded 1.7 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/RcppEigen_0.3.3.9.1.zip'
Content type 'application/zip' length 2870044 bytes (2.7 MB)
downloaded 2.7 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/carData_3.0-5.zip'
Content type 'application/zip' length 1820557 bytes (1.7 MB)
downloaded 1.7 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/abind_1.4-5.zip'
Content type 'application/zip' length 63748 bytes (62 KB)
downloaded 62 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/pbkrtest_0.5.1.zip'
Content type 'application/zip' length 356907 bytes (348 KB)
downloaded 348 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/quantreg_5.88.zip'
Content type 'application/zip' length 1943351 bytes (1.9 MB)
downloaded 1.9 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/maptools_1.1-3.zip'
Content type 'application/zip' length 2220324 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/lme4_1.1-28.zip'
Content type 'application/zip' length 5349300 bytes (5.1 MB)
downloaded 5.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/corrplot_0.92.zip'
Content type 'application/zip' length 3844791 bytes (3.7 MB)
downloaded 3.7 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/car_3.0-12.zip'
Content type 'application/zip' length 1413444 bytes (1.3 MB)
downloaded 1.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ggrepel_0.9.1.zip'
Content type 'application/zip' length 1119220 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ggsci_2.9.zip'
Content type 'application/zip' length 2978469 bytes (2.8 MB)
downloaded 2.8 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/cowplot_1.1.1.zip'
Content type 'application/zip' length 1375525 bytes (1.3 MB)
downloaded 1.3 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ggsignif_0.6.3.zip'
Content type 'application/zip' length 600832 bytes (586 KB)
downloaded 586 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/gridExtra_2.3.zip'
Content type 'application/zip' length 1109446 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/polynom_1.4-0.zip'
Content type 'application/zip' length 312672 bytes (305 KB)
downloaded 305 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/rstatix_0.7.0.zip'
Content type 'application/zip' length 606899 bytes (592 KB)
downloaded 592 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/4.1/ggpubr_0.4.0.zip'
Content type 'application/zip' length 1906849 bytes (1.8 MB)
downloaded 1.8 MB

package ‘pkgload’ successfully unpacked and MD5 sums checked

package ‘praise’ successfully unpacked and MD5 sums checked

package ‘waldo’ successfully unpacked and MD5 sums checked

package ‘testthat’ successfully unpacked and MD5 sums checked

package ‘numDeriv’ successfully unpacked and MD5 sums checked

package ‘SparseM’ successfully unpacked and MD5 sums checked

package ‘MatrixModels’ successfully unpacked and MD5 sums checked

package ‘sp’ successfully unpacked and MD5 sums checked

package ‘minqa’ successfully unpacked and MD5 sums checked

package ‘nloptr’ successfully unpacked and MD5 sums checked

package ‘RcppEigen’ successfully unpacked and MD5 sums checked

package ‘carData’ successfully unpacked and MD5 sums checked

package ‘abind’ successfully unpacked and MD5 sums checked

package ‘pbkrtest’ successfully unpacked and MD5 sums checked

package ‘quantreg’ successfully unpacked and MD5 sums checked

package ‘maptools’ successfully unpacked and MD5 sums checked

package ‘lme4’ successfully unpacked and MD5 sums checked

package ‘corrplot’ successfully unpacked and MD5 sums checked

package ‘car’ successfully unpacked and MD5 sums checked

package ‘ggrepel’ successfully unpacked and MD5 sums checked

package ‘ggsci’ successfully unpacked and MD5 sums checked

package ‘cowplot’ successfully unpacked and MD5 sums checked

package ‘ggsignif’ successfully unpacked and MD5 sums checked

package ‘gridExtra’ successfully unpacked and MD5 sums checked

package ‘polynom’ successfully unpacked and MD5 sums checked

package ‘rstatix’ successfully unpacked and MD5 sums checked

package ‘ggpubr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:\Users\alitt\AppData\Local\Temp\RtmpWGGjmm\downloaded_packages

在我看来,基于最后一行的包“ggpubr”成功解压。

所以,我查了这个

代码语言:javascript
运行
复制
library(ggpubr)

并返回此错误消息:

代码语言:javascript
运行
复制
Error in library(ggpubr) : there is no package called ‘ggpubr’

我不知所措,我很感激你的帮助!

EN

回答 1

Stack Overflow用户

发布于 2022-04-01 16:56:41

我发现库路径指向我的OneDrive。因为这对于RStudio是不可写的,所以我在原始的install.packages()代码中添加了自定义路径。我去了我的自定义文件夹,复制了所有的子目录,并将它们粘贴到OneDrive文件夹中。有点向后,但有效,我可以向前看。非常感谢!

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71709667

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档