在R中安装事实软件包的问题

问题描述 投票:0回答:1

嗨,我正在使用R(和Ubuntu中的RStudio),但遇到以下问题。

我使用代码行:

install.packages("factoextra")

在安装过程中,我收到消息:

install.packages("factoextra")
Installing package into ‘/home/martinandrade/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)

Warning in install.packages :
  dependencies ‘FactoMineR’, ‘cowplot’ are not available
also installing the dependency ‘ggpubr’

trying URL 'https://cloud.r-project.org/src/contrib/ggpubr_0.2.4.tar.gz'
Content type 'application/x-gzip' length 2665439 bytes (2.5 MB)
==================================================
downloaded 2.5 MB

trying URL 'https://cloud.r-project.org/src/contrib/factoextra_1.0.5.tar.gz'
Content type 'application/x-gzip' length 1390733 bytes (1.3 MB)
==================================================
downloaded 1.3 MB

ERROR: dependency ‘cowplot’ is not available for package ‘ggpubr’
* removing ‘/home/martinandrade/R/x86_64-pc-linux-gnu-library/3.4/ggpubr’
Warning in install.packages :
  installation of package ‘ggpubr’ had non-zero exit status
ERROR: dependencies ‘FactoMineR’, ‘ggpubr’ are not available for package ‘factoextra’
* removing ‘/home/martinandrade/R/x86_64-pc-linux-gnu-library/3.4/factoextra’
Warning in install.packages :
  installation of package ‘factoextra’ had non-zero exit status

The downloaded source packages are in
    ‘/tmp/RtmpsKLn56/downloaded_packages’

加载软件包时会产生错误消息


   library("factoextra")
   Error in library("factoextra") : there is no package called ‘factoextra’

r r-package
1个回答
-2
投票

这样做:

install.packages("factorextra")
library(factorextra)
© www.soinside.com 2019 - 2024. All rights reserved.