Ошибка в library ggpubr нет пакета под названием ggpubr

Hello. I am still having a similar issue to the above where a package ‘zip’ is required to run ggpubr. Even after updating R to 4.0.2, updating all packages and installing package ‘zip’ I cannot run ggpubr.

R version 4.0.2 (2020-06-22) — «Taking Off Again»
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.0 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type ‘license()’ or ‘licence()’ for distribution details.

Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type ‘contributors()’ for more information and
‘citation()’ on how to cite R or R packages in publications.

Type ‘demo()’ for some demos, ‘help()’ for on-line help, or
‘help.start()’ for an HTML browser interface to help.
Type ‘q()’ to quit R.

update.packages()
data.table :
Version 1.12.8 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.13.0 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
deldir :
Version 0.1-25 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 0.1-28 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
dplyr :
Version 1.0.0 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.0.1 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
epiR :
Version 1.0-14 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.0-15 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
expm :
Version 0.999-4 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 0.999-5 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
httr :
Version 1.4.1 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.4.2 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
jsonlite :
Version 1.6.1 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.7.0 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
openssl :
Version 1.4.1 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.4.2 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
pillar :
Version 1.4.4 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.4.6 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
pkgbuild :
Version 1.0.8 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.1.0 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
processx :
Version 3.4.2 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 3.4.3 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
ps :
Version 1.3.3 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.3.4 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
raster :
Version 3.1-5 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 3.3-13 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
Rcpp :
Version 1.0.4.6 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.0.5 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
RcppArmadillo :
Version 0.9.880.1.0 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 0.9.900.2.0 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
rgdal :
Version 1.5-10 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.5-16 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
rlang :
Version 0.4.6 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 0.4.7 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
survival :
Version 3.1-12 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 3.2-3 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
sys :
Version 3.3 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 3.4 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
tibble :
Version 3.0.1 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 3.0.3 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
tidyr :
Version 1.1.0 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 1.1.1 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
vctrs :
Version 0.3.1 installed in /Library/Frameworks/R.framework/Versions/4.0/Resources/library
Version 0.3.2 available at https://cran.mirror.ac.za
Update? (Yes/no/cancel) Y
also installing the dependency ‘cpp11’

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/cpp11_0.2.1.tgz’
Content type ‘application/octet-stream’ length 191339 bytes (186 KB)

downloaded 186 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/data.table_1.13.0.tgz’
Content type ‘application/octet-stream’ length 2306488 bytes (2.2 MB)

downloaded 2.2 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/deldir_0.1-28.tgz’
Content type ‘application/octet-stream’ length 273467 bytes (267 KB)

downloaded 267 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/dplyr_1.0.1.tgz’
Content type ‘application/octet-stream’ length 1215793 bytes (1.2 MB)

downloaded 1.2 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/epiR_1.0-15.tgz’
Content type ‘application/octet-stream’ length 847731 bytes (827 KB)

downloaded 827 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/expm_0.999-5.tgz’
Content type ‘application/octet-stream’ length 237118 bytes (231 KB)

downloaded 231 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/httr_1.4.2.tgz’
Content type ‘application/octet-stream’ length 498155 bytes (486 KB)

downloaded 486 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/jsonlite_1.7.0.tgz’
Content type ‘application/octet-stream’ length 1121831 bytes (1.1 MB)

downloaded 1.1 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/openssl_1.4.2.tgz’
Content type ‘application/octet-stream’ length 2687704 bytes (2.6 MB)

downloaded 2.6 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/pillar_1.4.6.tgz’
Content type ‘application/octet-stream’ length 176431 bytes (172 KB)

downloaded 172 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/pkgbuild_1.1.0.tgz’
Content type ‘application/octet-stream’ length 139362 bytes (136 KB)

downloaded 136 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/processx_3.4.3.tgz’
Content type ‘application/octet-stream’ length 278450 bytes (271 KB)

downloaded 271 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/ps_1.3.4.tgz’
Content type ‘application/octet-stream’ length 217609 bytes (212 KB)

downloaded 212 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/raster_3.3-13.tgz’
Content type ‘application/octet-stream’ length 4229389 bytes (4.0 MB)

downloaded 4.0 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/Rcpp_1.0.5.tgz’
Content type ‘application/octet-stream’ length 3215939 bytes (3.1 MB)

downloaded 3.1 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/RcppArmadillo_0.9.900.2.0.tgz’
Content type ‘application/octet-stream’ length 1874697 bytes (1.8 MB)

downloaded 1.8 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/rgdal_1.5-16.tgz’
Content type ‘application/octet-stream’ length 83941522 bytes (80.1 MB)

downloaded 80.1 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/rlang_0.4.7.tgz’
Content type ‘application/octet-stream’ length 1210897 bytes (1.2 MB)

downloaded 1.2 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/survival_3.2-3.tgz’
Content type ‘application/octet-stream’ length 7917007 bytes (7.6 MB)

downloaded 7.6 MB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/sys_3.4.tgz’
Content type ‘application/octet-stream’ length 47291 bytes (46 KB)

downloaded 46 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/tibble_3.0.3.tgz’
Content type ‘application/octet-stream’ length 394303 bytes (385 KB)

downloaded 385 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/tidyr_1.1.1.tgz’
Content type ‘application/octet-stream’ length 928021 bytes (906 KB)

downloaded 906 KB

trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/vctrs_0.3.2.tgz’
Content type ‘application/octet-stream’ length 1269066 bytes (1.2 MB)

downloaded 1.2 MB

The downloaded binary packages are in
/var/folders/cw/fhw1sm6j3s12t551gkm02qc80000gn/T//RtmpJ7gCOz/downloaded_packages

install.packages(ggpubr)
Error in install.packages : object ‘ggpubr’ not found
install.packages(‘ggpubr’)
trying URL ‘https://cran.mirror.ac.za/bin/macosx/contrib/4.0/ggpubr_0.4.0.tgz’
Content type ‘application/octet-stream’ length 1904641 bytes (1.8 MB)
==================================================
downloaded 1.8 MB

The downloaded binary packages are in
/var/folders/cw/fhw1sm6j3s12t551gkm02qc80000gn/T//RtmpJ7gCOz/downloaded_packages

library(ggpubr)
Loading required package: ggplot2
Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘zip’
install.packages(‘zip’)

There is a binary version available but the source version is later:
binary source needs_compilation
zip 2.0.4 2.1.0 TRUE

Do you want to install from sources the package which needs compilation? (Yes/no/cancel) Y
installing the source package ‘zip’

trying URL ‘https://cran.mirror.ac.za/src/contrib/zip_2.1.0.tar.gz’
Content type ‘application/octet-stream’ length 112796 bytes (110 KB)

downloaded 110 KB

  • installing source package ‘zip’ …
    ** package ‘zip’ successfully unpacked and MD5 sums checked
    ** using staged installation
    ** libs
    xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
    ERROR: compilation failed for package ‘zip’
  • removing ‘/Library/Frameworks/R.framework/Versions/4.0/Resources/library/zip’
    Warning in install.packages :
    installation of package ‘zip’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/cw/fhw1sm6j3s12t551gkm02qc80000gn/T/RtmpJ7gCOz/downloaded_packages’

library(ggpubr)
Error: package or namespace load failed for ‘ggpubr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
there is no package called ‘zip’

У меня возникли проблемы с установкой этого пакета «ggpubr». мне кажется, что это распространенная проблема. Я пытался найти решение здесь, в stackoverflow, но пока ничего не получилось! я пытался установить его. это показывает

      > library(rstatix)
Error in library(rstatix) : there is no package called ‘rstatix’
> library(broom)
Error in library(broom) : there is no package called ‘broom’
> library(ggpubr)
Error in library(ggpubr) : there is no package called ‘ggpubr’
> install.packages("ggpubr")
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/
Installing package into ‘C:.....win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rlang’, ‘tidyselect’, ‘vctrs’, ‘dplyr’, ‘broom’, ‘rstatix’


  There are binary versions available but the source versions are later:
           binary source needs_compilation
rlang       0.4.5 0.4.10              TRUE
tidyselect  1.0.0  1.1.0              TRUE
vctrs       0.2.4  0.3.6              TRUE
dplyr       0.8.5  1.0.4              TRUE
broom       0.5.6  0.7.4             FALSE
rstatix     0.4.0  0.6.0             FALSE
ggpubr      0.2.5  0.4.0             FALSE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/rlang_0.4.5.zip'
Content type 'application/zip' length 1115838 bytes (1.1 MB)
downloaded 1.1 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyselect_1.0.0.zip'
Content type 'application/zip' length 242507 bytes (236 KB)
downloaded 236 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/vctrs_0.2.4.zip'
Content type 'application/zip' length 1018801 bytes (994 KB)
downloaded 994 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/dplyr_0.8.5.zip'
Content type 'application/zip' length 3256479 bytes (3.1 MB)
downloaded 3.1 MB

package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tidyselect’ successfully unpacked and MD5 sums checked
package ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
    C:....downloaded_packages
installing the source packages ‘broom’, ‘rstatix’, ‘ggpubr’

trying URL 'https://cran.rstudio.com/src/contrib/broom_0.7.4.tar.gz'
Content type 'application/x-gzip' length 629713 bytes (614 KB)
downloaded 614 KB

trying URL 'https://cran.rstudio.com/src/contrib/rstatix_0.6.0.tar.gz'
Content type 'application/x-gzip' length 394803 bytes (385 KB)
downloaded 385 KB

trying URL 'https://cran.rstudio.com/src/contrib/ggpubr_0.4.0.tar.gz'
Content type 'application/x-gzip' length 2689307 bytes (2.6 MB)
downloaded 2.6 MB

* installing *source* package 'broom' ...
** package 'broom' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'dplyr' 0.8.5 is being loaded, but >= 1.0.0 is required
ERROR: lazy loading failed for package 'broom'
* removing 'C:win-library/3.5/broom'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘broom’ had non-zero exit status
ERROR: dependency 'broom' is not available for package 'rstatix'
* removing 'C:/win-library/3.5/rstatix'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘rstatix’ had non-zero exit status
ERROR: dependency 'rstatix' is not available for package 'ggpubr'
* removing 'C:/win-library/3.5/ggpubr'
In R CMD INSTALL
Warning in install.packages :
  installation of package ‘ggpubr’ had non-zero exit status

но когда я загружаю пакет, он говорит

«Ошибка в библиотеке (ggpubr): нет пакета с именем «ggpubr»»

но я уже установил его вместе с «метлой» «rstatix»

I am attempting to download the package ggpubr. My R studio version is 3.5.2. I’ve been trying to install ggpubr library via:

install.packages("ggpubr")

and

if(!require(devtools)) install.packages("devtools")devtools::install_github("kassambara/ggpubr)

But when I do that, I get this error:


    clang: error: unsupported option '-fopenmp'
    make: *** [RcppExports.o] Error 1
    ERROR: compilation failed for package ‘conquer’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/conquer```
    
#Followed by:
    
    ../libtool: line 1099: ERROR:: command not found
    make[2]: *** [libutil.la] Error 127
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2
    ERROR: configuration failed for package ‘nloptr’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/nloptr’
    Warning in install.packages :
      installation of package ‘nloptr’ had non-zero exit status
    ERROR: dependency ‘conquer’ is not available for package ‘quantreg’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/quantreg’
    Warning in install.packages :
      installation of package ‘quantreg’ had non-zero exit status
    ERROR: dependency ‘nloptr’ is not available for package ‘lme4’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/lme4’
    Warning in install.packages :
      installation of package ‘lme4’ had non-zero exit status
    ERROR: dependencies ‘pbkrtest’, ‘quantreg’, ‘lme4’ are not available for package ‘car’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/car’
    Warning in install.packages :
      installation of package ‘car’ had non-zero exit status
    ERROR: dependency ‘car’ is not available for package ‘rstatix’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/rstatix’
    Warning in install.packages :
      installation of package ‘rstatix’ had non-zero exit status
    ERROR: dependency ‘rstatix’ is not available for package ‘ggpubr’
    * removing ‘/Library/Frameworks/R.framework/Versions/3.5/Resources/library/ggpubr’
    Warning in install.packages :
      installation of package ‘ggpubr’ had non-zero exit status

I’m not sure what to do. I’ve tried independently installing conquer, and a handful of other things that didn’t help…

I tried simply using install.package("ggpubr"), and I also tried if(!require(devtools)) install.packages("devtools") devtools::install_github("kassambara/ggpubr").

Anyone know what to do?

Я новичок в R, и я просто пытаюсь пройти некоторые уроки.

Когда я пытаюсь установить ggplot2, я получаю эту ошибку.

Error in library(ggplot2) : There is no package called 'ggplot2'

Я попробовал это в R и RStudio.

install.packages("ggplot2", dep=T)

install.packages('ggplot2', repos='http://cran.us.r-project.org')

remove.packages("ggplot2")

Но я получаю ошибку

(Error in remove.packages : there is no package called 'ggplot2')

Это то, что я получаю из install.packages («ggplot2»)

> install.packages("ggplot2")
Installing package into ‘.../R/win-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
  'lib = ".../R/win-library/3.4"' is not writable
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/ggplot2_2.2.1.zip'
Content type 'application/zip' length 2784566 bytes (2.7 MB)
downloaded 2.7 MB

package ‘ggplot2’ successfully unpacked and MD5 sums checked
Warning in install.packages :
  cannot remove prior installation of package ‘ggplot2’

The downloaded binary packages are in
    C:...AppDataLocaltempRtmpqaGNprdownloaded_packages

Я удалил все файлы ggplot2 вручную, затем попытался установить снова. Вот мой результат.

> install.packages("ggplot2")
Installing package into ‘.../R/win-library/3.4’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---
trying URL 'https://ftp.osuosl.org/pub/cran/bin/windows/contrib/3.4/ggplot2_2.2.1.zip'
Content type 'application/zip' length 2784566 bytes (2.7 MB)
downloaded 2.7 MB

package ‘ggplot2’ successfully unpacked and MD5 sums checked
Warning: unable to move temporary installation ‘...Rwin-library3.4file26b43a54980ggplot2’ to ‘...Rwin-library3.4ggplot2’

The downloaded binary packages are in
        C:...AppDataLocaltempRtmpq0T9a6downloaded_packages
> library(ggplot2)
Error in library(ggplot2) : there is no package called ‘ggplot2’
> library("ggplot2")
Error in library("ggplot2") : there is no package called ‘ggplot2’
> 

3 ответа

Лучший ответ

Меры

  1. Перейти к инструментам

  2. Установить пакеты

  3. В текстовом поле «Типы пакетов» ggplot2

  4. Установите флажок установить зависимости


7

Bill the Lizard
31 Июл 2018 в 16:55

Попробуйте запустить R-клиент непосредственно из командной строки, а затем выполните инструкцию: install.packages («ggplot2», lib = «C: /Users/YourUser/Documents/R/win-library/3.3»)


1

Renaud
23 Ноя 2018 в 22:18

Понравилась статья? Поделить с друзьями:
  • Ошибка в library dplyr нет пакета под названием dplyr
  • Ошибка в call of duty server
  • Ошибка в call of duty buddha dll
  • Ошибка в call of duty advanced warfare вопросы
  • Ошибка в cabd смотри cabi err и error log